#include <stdio.h>
int main(void)
{
int a,b;
char c;
for ( a = 0; a <= 10000; a += 1 ) {
scanf("%d",&b);
printf("你输入的整数是:%d\n\n",b);
switch( b ) {
default: printf("\ndefault
b = %d",b);
case 1: printf("\ncase 1
\t\tb = %d\n",b);
case 2: printf("\ncase 2
\t\tb = %d\n",b);
case 3: printf("\ncase 3
\t\tb = %d\n",b);
case 4: printf("\ncase 4
\t\tb = %d\n",b);
case 5: printf("\ncase 5
\t\tb = %d\n",b);
case 6: printf("\ncase 6
\t\tb = %d\n\n\n",b);
}
printf("\n\n\t\t你是否想要此程序继续运行?\n");
printf("\n\n\t\t继续执行请输入字符: y .\n\t\t退出请按字符: n .\n");
scanf("%c",&c);
printf("\n\t\t你输入的字符是:%c\n\n",c);
if ( c == 'y' ) printf("\t\t程序继续执行...请输入一个整数:\n");
else if ( c == 'n' ) {
printf("\n\t\t\t退出程序,程序已经退出!");
a = 1000000;
}
}
return 0;
}