#include "stdio.h"
int main(int argv,char *argc[]){
int a,b,c,d,e,f,t;
printf("Input 6 integers...\n");
scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f);
t=a;
if(t>b)
t=b;
if(t>c)
t=c;
if(t>d)
t=d;
if(t>e)
t=e;
if(t>f)
t=f;
printf("The smallest is %d\n",t);
return 0;
}
运行样例:
![](https://video.ask-data.xyz/img.php?b=https://iknow-pic.cdn.bcebos.com/3b292df5e0fe99252764af893fa85edf8cb171fb?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)