Write a function called random that generates two random values form 0 to 20. It also checks if using the operation generated by the main() function on the two values generates a value %26lt; 0 or %26gt; 20. If it is, then the function randomizes iether just on ot the two values again, As a result, it accerpts the value of the operation and the addresses of operand1 and operand2. Call this function from main().
BTW the file extension is .C
I have a C program problem....?
Get off of Yahoo! answers and do your own damn homework. Find a free compiler like Dev C++ or GNU and a text editor ( I like Emacs ) and get cracking.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment