字體:小 中 大 | |
|
|
2008/01/14 21:11:12瀏覽681|回應0|推薦2 | |
# include <stdio.h> main() { int a,b,c,max,min; printf("Input your First number:"); scanf("%d",&a); printf("Input your Second number:"); scanf("%d",&b); printf("Input your Third number:"); scanf("%d",&c); if(a>b) max=a; else max=b; if(c>max) max=c; if(a<b) min=a; else min=b; if(c<min) min=c; printf("The Max number is=%d\n",max); printf("The Min number is=%d",min); } |
|
( 知識學習|語言 ) |