Understanding Computer Programming

Osher Lifelong Learning Institute
University of Illinois, Urbana-Champaign

Scott Badman, Instructor


Topic: Modulo program implemented in QuickBasic

February 4, 2016


INPUT number
INPUT divisor

intermediate = number

WHILE intermediate >= divisor
    intermediate = intermediate - divisor
WEND

remainder = intermediate

PRINT remainder





Understanding Computer Programming

Osher Lifelong Learning Institute
University of Illinois, Urbana-Champaign

Scott Badman, Instructor