#include <stdio.h>
main(){
int a,b,c,d,e,t,aa,f,as;
printf("Enter Number 1 :");
scanf("%d",&a);
printf("Enter Number 2 :");
scanf("%d",&b);
printf("Enter Number 3 :");
scanf("%d",&c);
d = (a > b ) ? a : b,(a < b) ? a : b;
aa = (c > d) ? c : d,(c < d) ? c : d;
e = (c > aa) ? c : aa,(c < aa) ? c : aa;
f = (a < b) ? a : b;
t = (f < c) ? f : c;
as = (t < a) ? t :a;
printf("Max value is %d\n",e);
printf("Min value is %d",as);
printf("\n");
printf("\nGood Bye :) ");
printf("\nDev by Wannaphong\n");
printf("Date 23/1/2014");
}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น