The QBasic / QB64 Discussion Forum      Other Subforums, Links and Downloads
 
 Return to Index  

qbasic.qb45.com/download.php?id=840

May 7 2012 at 10:52 AM
Anonymous  (no login)

'adder2.bas
'Aussie John 6/6/01
'Done on fly in Notepad to show a simple QBasic program.
'START
'header
CLS
PRINT
PRINT " Aussie John's Little QBasic Computer Program"
PRINT " ********************************************"
PRINT
'greet user and input
INPUT " Please enter your name .."; Name$
PRINT
PRINT " Hello "; Name$
SLEEP 2
PRINT " I will add two numbers for you."
PRINT
INPUT " Enter the first number to add ...."; Num1
INPUT " Enter the second number to add ..."; Num2
SLEEP 2
'calculations
LET Total = Num1 + Num2
'output
PRINT
PRINT " The two numbers add to .." ;Total
SLEEP 2
'termination message and termination
PRINT
PRINT
PRINT " Thanks for visiting"; Name$
SLEEP 2
PRINT
PRINT " Goodbye"
SLEEP 2
CLS
END







 
 Respond to this message   
Response TitleAuthor and Date
from (View Thread)Anonymous on May 7

Newbies usually go to www.qbasic.com and click on The QBasic Forum
Forum regulars have their own ways, which include The QBasic Community Forums