Friday, July 31, 2009

C probs..PLS HELP!!!!!!!?

how can i create a program that randomly add or subtract a number? example 3+2 or 10-3, i want the operation to be random...I already figure out the numbers, this is my only problem and that is to randomize the addition and subtraction operation...


btw the file extension is .c...tnx help you could help me... :)

C probs..PLS HELP!!!!!!!?
Im not that good in programming but i think you should get the ascii value for the operators and let the random function operate within those values. (not sure)
Reply:Have a random number between 0 and 1.


If 0 then add


else subtract.





Don't make it any more complicated.


No comments:

Post a Comment