If I scanned ten numbers, how do I printf the biggest number the program scanned?
Example: 1 2 3 4 5 6 9 8 7 10
Your Biggest Integer is: 10.
If I scanned ten numbers, how do I printf the biggest number the program scanned?
Example: 1 2 3 4 5 6 9 8 7 10
Your Biggest Integer is: 10.
I don't know the C way to do this, but basically you just have to take each set of characters and check if it is higher than the highest you have listed (you will need a buffer).
Store the first number. Compare it with the next. Replace if bigger. Repeat until done. You fail at Spock.
Quzah.
Hope is the first step on the road to disappointment.