QBasic Programming

WAP to print first ten multiples of input number

CLS
INPUT “ENTER ANY NUMBER”; N
FOR I = 1 TO 10
PRINT N * I,
NEXT I
END

DECLARE SUB SERIES ( N)
CLS
INPUT “ENTER ANY NUMBER”; N
CALL SERIES (N)
END

SUB SERIES (N)
FOR I = 1 TO 10
PRINT N * I,
NEXT I
END SUB

WAP using to print the sum of first ten positive integers (Prev Lesson)
(Next Lesson) WAP using to display first 13 odd numbers
Back to QBasic Programming

No Comments

Post a Reply

Course Curriculum

error: Content is protected !!