-
functions
How do you write three separate functions using rand() to randomly pick a number 1-12 and then write one to randomly pick a character(the five math operators) without being in the main ().
Then write another function to get two of the numbers and an operator.(Using stdlib.h,time.h,iostream.h)
-
Do you have a problem?
http://www.cprogramming.com/cboard/s...highlight=rand
http://www.cprogramming.com/cboard/s...highlight=rand
http://www.cprogramming.com/cboard/s...highlight=rand
Yes, I think so.
If the requirements have changed, post some code to show you've attempted it. Somebody will tell you where you're going wrong.
-
There, whoever you are who keeps asking, I modified it so that it only uses stdlib.h, time.h, and iostream.h. Just go to Emeduranki's links and you'll find the updated code.