#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;
}
运行样例: