I see..
Although the first reply fixed my problem I will definitely bookmark this page to make sure I know what I'm doing if I face function errors in the future. You guys have been a great help....
Type: Posts; User: uural4792
I see..
Although the first reply fixed my problem I will definitely bookmark this page to make sure I know what I'm doing if I face function errors in the future. You guys have been a great help....
These simple fixes drive me insane.. Thank you so much. I appreciate your help. Fixed my problem!
I'm creating a program that rates bowlers based on their average score and assigns a star value for their performance(ex : *** means their average is between 170 and 199) and I need to create a...
I'm getting one warning which is saying "char format, different type arg (arg2)" which I don't really understand. We learned about argc and argv today in class and I still don't understand it fully. ...
So I'm finally starting to get the hang of the loops and such and we were introduced to a bunch of new stuff today and had to write what to me seemed like a pretty complicated code. I looked at this...
Yes I do that.
The file name for this assignment was ex03 and I built the program by typing "gcc ex03.c -o ex03"
I should start writing "gcc -Wall -o ex03 ex03.c" ?
*facepalm*
Okay thank you. It's working perfect now that i changed those. And my compiler doesn't have warnings, our professor forces us to use putty which doesn't have that option as far as we've...
I'm trying to do a problem for my class and it states that i have to use the code
while(scanf("%lf", &salary) == 1) {
}
Now the code I have works when I use %d instead of %lf and I've...
Haha something like that.. :wink:
Alright guys so I went and got some help from a TA and found the mistakes I was making. I needed another variable besides sum and n to make this work. The final code I ended up with was
...
I see..
This is my new code :
int n, sum;
printf("Enter Non-Zero Integer\n");
scanf("%d", &n);
sum = 0;
for( ; n >= 2 *n; ++n){
First off, thanks a lot for your help I appreciate it.
I've fixed the things you said and have this as my code now :
int n;
printf("Enter A Non-Zero Integer\n");
scanf("%d", &n);
for( ;...
I have the following code and I'm not getting the result I want and I was wondering if you guys could lead me in the right direction.
int n;
printf("Enter Non-Zero Integer\n");
scanf("%d",n);...
I'm completely new to C programming, and programming in general, and I just have a quick question.
If I am trying to find the sum of the integers from n to 2*n (ex : if n = = 5, then sum = 5 + 6...