this is my homework, but a hint in the right direction would be very helpful.
this program is supposed to take a set of numbers and output the oddcount, sum, and average. also for the even numbers. this is my program so far and it compiles but when the console pops up nothing happens.
so if anyone could point out problems with it, it would be greatly appreciated. thanks
1.) Your while loop doesn't do anything. I think you meant to put it around where you get the data? As of now it will cause an infinite loop.
2.) OddSum/OddCount and Even don't need to doubles.
oh so i need to give it an exit path i guess. and i made them doubles because some of the numbers in my input file are kinda big. but thanks for the help