新手求助。编程遇到错误
#include<stdio.h>int main()
{
int R,S;
printf("请输入清晰度:");
scanf("%d",&R);
printf("请输入大小:");
scanf("%d",&S);
swich(S){
case 1:
printf("Faint signals, barely perceptibl,");
break;
case 2:
printf("Very weak signals,");
break;
case 3:
printf("Weak signals,");
break;
case 4:
printf("Fair signals,");
break;
case 5:
printf("Fairly good signals,");
break;
case 6:
printf("Good signals,");
break;
case 7:
printf("Moderately strong signals,");
break;
case 8:
printf("Strong signals,");
break;
default:
printf("Extremely strong signals,");
break;
}
swich(R){
case 1:
printf("Unreadable.");
break;
case 2:
printf("Barely readable, occasional words distinguishable.");
break;
case 3:
printf("Readable with considerable difficulty.");
break;
case 4:
printf("Readable with practically no difficulty.");
break;
default:
printf("Perfectly readable.");
break;
}
return 0;
}
提示错误:In function 'main':
11 列 10行 [Error] expected ';' before '{' token