Jump to content
  • entries
    469
  • comments
    324
  • views
    402,136

GwBasic/Basica gives strange answer part 2

Serguei2

825 views

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.

 

blogentry-1196-0-43162800-1352160092.png

 

 

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.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...