#include <stdio.h>
int main()
{
int a, b, c, min, max;
printf("beri nilai a : ");
scanf("%d", &a);
printf("beri nilai b : ");
scanf("%d", &b);
printf("beri nilai c : ");
scanf("%d", &c);
min = (min=(a < b) ? a : b) < c ? min : c;
max = (max=(a > b) ? a : b) > c ? max : c;
printf("bilangan minimum : %d\n", min);
printf("bilangan maximum : %d\n", max);
return 0;
}
C Programming - Program Mencari Nilai Max dan Min dari Tiga Bilangan
Posted by
Posted by
batercusblack
On
8:14 PM
0 comments
Post a Comment