@akrotkov said:
@rebel_inside said:
int i, min, max;
scanf("%d", &min);
max = min;
for (i = 0; i < <font color="#ff0000">4</font>; i++)
{
int x;
scanf("%d", &x);
if (x>max) max = x;
if (x<min) min = x;
}
printf("min: %d; max: %d", min, max);
Looks at fingers
Zero, One, Two, Three.
4<=4 === False.
There's four fingers up, you fail.
Couldn't resist!
erm that code is correct, it reads the first value above the loop. You fail.
If you were joking, well I couldn't pick it up; sorry. :)