语句片段如下: printf("Please enter num1:"); scanf("%d",&num1); printf("Please enter num2:"); scanf("%d",&num2); printf("Please enter opt:"); scanf("%c",&opt);
printf("Please enter num1:"); scanf("%d",&num1); getchar(); printf("Please enter num2:"); scanf("%d",&num2); getchar(); printf("Please enter opt:"); scanf("%c",&opt);