#include<stdio.h>
int main()
{
int a, b, c, d, e, f, r=0;
r=scanf("%d %d %d %d %d %d\n", &a, &b, &c, &d, &e, &f);
if(r==6)
{
printf( "Hello" );
}
else
{
printf( "BOOM!!\n" );
printf("The bomb has blown up");
}
}
我希望scanf只接受少量输入&lt; 6并跳转到else部分并执行它。