Say you input 10 different numbers, it should determine the two largest number.Can you do it with 3 variables only?The variables should be: counter -( for the loop), number - (input),largest - (largest number so far).
Say you input 10 different numbers, it should determine the two largest number.Can you do it with 3 variables only?The variables should be: counter -( for the loop), number - (input),largest - (largest number so far).
Eh, you want to find largest and the second largest number, and only use a number, counter and largest variable? I doubt you can do that. [Assuming of course that none of the variables are pointers to more than one of it's type or arrays, that is].
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Im happy to here that