I am trying to find the grades between certain numbers and then display them.
I have the inputs set up to get the min and max, but I dont know how to get the printf/loop to display what I want.
I am trying to find the grades between certain numbers and then display them.
I have the inputs set up to get the min and max, but I dont know how to get the printf/loop to display what I want.
Last edited by omegasli; 04-10-2011 at 01:06 AM.
Please come through for me! Someone has to know it!
Last edited by omegasli; 04-10-2011 at 12:50 AM.
> *grades >= min && *grades <= max
You want this as an if statement inside your loop, not a condition for continuing the loop.
Also, what is grades, and why are you incrementing it?
Just use grades[i] to index it (whether it's a pointer or an array)
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.