Thanks too Crossfire, thought you logged off, I now have a better understand of this concept than I did this morning.
Type: Posts; User: ProBallChamp
Thanks too Crossfire, thought you logged off, I now have a better understand of this concept than I did this morning.
Okay, if think I've got a substantial program now. Though, I still have much to learn. Thanks for all the help Grumpy and Barney
How do I get it to stop printing
x is greater than y
when I don't input anything?
Crossfire Could you clarify this for me.
int main(void){int x, y;
So the above is not redundant; saying integer main and integer variable x and y?
also what does the main(void) mean/do?
Okay, I see what you are looking for, here are three working cases when I input a x and y respectively;
1)
Input:
5 /* x */
4 /* y */
Output
Here is as far a I know how to go (since I am new to the C programming language)
#include <stdio.h>
#include <math.h>
int x, y;
main()
{ printf("\nInput an integer value for x:");
...
One caveat to this: When I enter a value for x and y respectively; the correct printf statement will appear. However, this is only true after I see the odd premature printf display as noted in the...
I forgot to include that ampersand in the forum text.... whoops
When ever I use scanf("%d", &n) ; and then have a following printf("Generic Statement:"); My compiler displays the printf statement without me inputting a value for n.
int x, y;main()...