Xlayer- I tried your suggestion and it appears to have made matters worse. Doing that destroys my constraint checking loop and the program just keeps accepting numbers regardless and with no end.
...
Type: Posts; User: lyoncourt
Xlayer- I tried your suggestion and it appears to have made matters worse. Doing that destroys my constraint checking loop and the program just keeps accepting numbers regardless and with no end.
...
#include <stdio.h>
int main (void)
{
int value, sum = 0;
printf ("Enter a value: ");
scanf ("%i", &value);
while ( sum > 100 )
{
I gave you my question and you gave me your answer and I am still trying to understand and figure things out. It's as simple as that.
No, I actually did write this code :/ I just started learning loops and stuff so I'm still trying to catch on to it.
Nevermind.
I'm sorry MacGyver, you have been so helpful yet I am simply not understanding what to do. I am so new to this.
Thank you though.
I am not exactly sure what or how to do it, hence the confusion on my part. Let me try to explain again.
User will input a value that will indicate how many values they intend to enter later....
Hi, I am writing a program that requires user determined input at the beginning of the program. I must ask the user to input a number that will determine the number of integers that the user will put...
Thank you so much! I have learned and I will keep that in mind in the future. :D
Hello, I'm beginning C programming and am having a little problem with this program of mine. The program is to take entered temperatures, which it does correctly, average them, also does correctly,...