switch语句
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define pi 3.14159
int main(){
int a;
scanf("%d",&a);
switch(a){
case 1 :{printf("You were studying Higher mathematics!");break;}
case 2 :{printf("You were studying Linear algebra!");break;}
case 3 :{printf("You were studying Principle of computer composition!");break;}
case 4 :{printf("You were studying Database system concept!");break;}
case 5 :{printf("You were playing games!");break;}
}
return 0;
}