include stdio include conio int main int max min scanf max min for sca

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <stdio.h>
#include <conio.h>
int main ()
{
int max,min, x, i;
scanf("%d", &x);
max = x;
min=x;
for (i = 0; i < 3; i++)
{
scanf("%d", &x);
if (x>0) ;
if (x<min) min=x;
scanf("%d", &x);
if (x<0);
if (x>max) max=x;
}
printf("Maximum: %d", max);
printf("Minimum:%d",min);
getch();
return 0;
}