Hi ! I really need some help!!!

Im still a newbie here, and just stuck with a little something..

I need to do a for loop comman, but the input needs to be a variable errm let me explain,

Say the prog will ask ... How many quizzes will i input: i say 5

Then it needs to allow me to input 5 different grades..

If i entered 10, then ti would allow me to enter 10 different grades,
Do you know what i mean?

How can i do that, without using arrays etc etc,
Just Looping and if switch etc ..
After i will get an avg grade from the input, which is easy, I just cant get the first part >"<
1
2
3
4
5
6
7
8
9
10
cin >> number;
for (int i = 0; i < number; i++) {
   int grade;
   cin >> grade;
   //do stuff with grade.
   //if you can't use arrays,
   //add grade to a counter
   //and divide that counter
   //by 'number' after the loop
}
awesome will try it now let you know!
Thanksou SO much !!!
perfect! thanks man!! heaps!!!
Topic archived. No new replies allowed.