Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

simple maths program

  • 18-07-2004 10:10AM
    #1
    Closed Accounts Posts: 507 ✭✭✭


    Can anyone help with this please?

    Using BASIC I could programthe following


    A+B+C=D

    D-A/A=ODDS
    D-B/B=ODDS
    D-C/C=ODDS

    I want to enter A B C and get odds.


Comments

  • Registered Users, Registered Users 2, Paid Member Posts: 21,262 ✭✭✭✭Stark


    PRINT "Enter A: "
    INPUT A
    PRINT "Enter B: "
    INPUT B
    PRINT "Enter C: "
    INPUT C
    LET D=A+B+C (I'm not sure if you still include the LET in modern BASIC)
    PRINT "ODDs = "
    PRINT (D-A)/A (and so on).


  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    Put them in for loops.

    Or while loops if you don't know your upper value.


  • Closed Accounts Posts: 507 ✭✭✭emmemm


    Sorry I should have said I want to do this on ME.


  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    Originally posted by emmemm
    Sorry I should have said I want to do this on ME.

    Which means what exactly?


  • Moderators, Recreation & Hobbies Moderators, Science, Health & Environment Moderators, Technology & Internet Moderators Posts: 96,032 Mod ✭✭✭✭Capt'n Midnight


    At a guess it's Windows ME
    try QBASIC at the command prompt.
    You can also find it on DOS disks - but licencing probably means you can't use it unless the computer it was on was disposed of.

    or http://www.thefreecountry.com/ - to find free basic compilers etc.


  • Advertisement
  • Closed Accounts Posts: 507 ✭✭✭emmemm


    Sorry if this sounds stupid.
    How do I get basic from a DOS floppy.


Advertisement