GwBasic/Basica gives strange answer part 2
Hi
Please read this first part to know what's going on:
http://www.atariage....strange-answer/
I wrote a little program in Basic. This will fix the answer.
You'll need GWbasic or Basica to run.
10 KEY OFF:WIDTH 40:CLS:PRINT
20 INPUT "Number #1";A
30 INPUT "Number #2";B
40 C=A-B:PRINT:PRINT
41 PRINT A"-"B:PRINT
50 PRINT USING"#####.##";C
55 PRINT:PRINT
59 END
Save this program and type Run and press Enter.
The program is designed to answer decimal. If you type 3-2, you'll get 1.00
Have fun with it.
Robin Gravel


0 Comments
Recommended Comments
There are no comments to display.