phat code In theory, there is no difference between theory and practice. But, in practice...
Main

Projects

Downloads

Articles

Links

Forum

 

View Message

Back to Messages
John W Ful Fri Jan 18 2008 at 9:42 pm
A lil Help? running the exe. simple?
 
 
When I use Quick Basic 4.5 to Compile my program:

My program will exit before the last "PRINT" command which is the answer...

EXAMPLE PROGRAM I USED:

'***     Program Area to Feet     ***


'***   This program prompts the user to enter      ***
'***   the length and width of a room and converts ***
'***   that information to square feet.            ***

CLS
PRINT "This program converts length and width to area in square feet."
PRINT
INPUT "Enter the length of the room: ", Lengt
INPUT "Enter the width of the room: ", Widt
LET Area = Lengt * Widt
PRINT
PRINT "The area of the room is:"; Area; "Square Feet."

END



Before my program reaches the

(PRINT "The area of the room is:"; Area; "Square Feet.")

command it exits the program...

I can enter information "Length" and "Witdth" and it works fine untill it has to show the answer...

I think this should be a simple fix?? Do I need to add some code like.. In MS-DOS I would add the code "PAUSE" or something...

Feel free to compile it yourselves and see what you can get it to do...

Anyone have any ideas?

THANKS - JohnWFul - :- )

ALSO: E-Mail: JohnWFul@Hotmail.com
 
 
 
 

Reply to this Message

Name
Subject
Message

No HTML is allowed, except for <code> <b> <i> <u> in the message only.
All URLs and email addresses will automatically be converted to hyperlinks.