what is QBASIC? write a program for using for and while loop in QBASIC.
Answers
Answer:
QBasic, a short form of Quick Beginners All purpose Symbolic Instruction Code, is an integrated development environment and interpreter for a variety of BASIC programming languages which are based on QuickBASIC
Syntax
DO WHILE condition
Statements
LOOP
Answer:
HEY MATE
QBASIC ( QUICK BEGGINERS ALL PURPOSE SYMBOLIC INSTRUCTION CODE ) IS A BASIC PROGRAMMING LANGUAGE WHICH USES SIMPLE FUNCTIONS
Explanation:
EXAMPLE 1 FOR LOOP -
FOR a = 1 TO 5
PRINT "This is loop number"; a
NEXT a
EXECUTION-
This is loop number 1
This is loop number 2
This is loop number 3
This is loop number 4
This is loop number 5
EXAMPLE 2 WHILE LOOP-
i% = 0
PRINT "Value of i% at beginning of loop is "; i%
DO WHILE i% < 10
i% = i% + 1
LOOP
PRINT "Value of i% at end of loop is "; i%