I've known my problem. Thank you!
The code: int max, max1, max2; int a, b, c, d; max1 = a; max2 = c; printf ("Enter a: %d", a); scanf ("%d", &a); printf ("Enter b: %d", b); scanf ("%d", &b); printf ("Enter c: %d", c); scanf ("%d", &c); printf ("Enter d: %d", d); scanf ("%d", &d); When I run it, there are some numbers auto show up in front of the the input. I've entered 1, 2, 3, 4 for a, b, c, d What's the number like 0 and 45 mean ? It also causes the program run incorrect.
The code: int max, max1, max2; int a, b, c, d; max1 = a; max2 = c; printf ("Enter a: %d", a); scanf ("%d", &a); printf ("Enter b: %d", b); scanf ("%d", &b); printf ("Enter c: %d", c); scanf ("%d", &c); printf ("Enter d: %d", d); scanf ("%d", &d); When I run it, there are some numbers auto show up in front of the the input. I've enter 1, 2, 3, 4 for a, b, c, d What's the number like 0 and 45 mean ? It also causes the program run incorrect.
The code: int max, max1, max2; int a, b, c, d; max1 = a; max2 = c; printf ("Enter a: %d", a); scanf ("%d", &a); printf ("Enter b: %d", b); scanf ("%d", &b); printf ("Enter c: %d", c); scanf ("%d", &c); printf ("Enter d: %d", d); scanf ("%d", &d); When I run it, there are some numbers auto show up in front of the the input. What does it mean ? It also makes the program run incorrect