Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

simple maths program

  • 18-07-2004 9: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 Posts: 21,084 ✭✭✭✭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: 93,596 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