Hi all,
I'm testing into the AP Computer Science class for my senior year and at my school they teach java.
I've had some experience with C, so im familiar with coding (kinda), however I only started this whole computer programming thing about 2 weeks ago.
One of the questions on this review sheet is to write a program in which the user inputs 3 integers and the program displays the sum,average,product, smallest and the largest of these 3 integers.
The sum,average, and product I all have down, but for the love of me I have no idea what to do to make the program determine which is the largest and smallest integer
http://pastie.org/558429
this is my code so far. I know it has something to do with the if loop, but I just can't think of what to type. Any help would be greatly appreciated
I'm testing into the AP Computer Science class for my senior year and at my school they teach java.
I've had some experience with C, so im familiar with coding (kinda), however I only started this whole computer programming thing about 2 weeks ago.
One of the questions on this review sheet is to write a program in which the user inputs 3 integers and the program displays the sum,average,product, smallest and the largest of these 3 integers.
The sum,average, and product I all have down, but for the love of me I have no idea what to do to make the program determine which is the largest and smallest integer
http://pastie.org/558429
this is my code so far. I know it has something to do with the if loop, but I just can't think of what to type. Any help would be greatly appreciated