#include<stdio.h>
#include<stdlib.h>
int main(){
int floor;
printf("Which floor do you live(1-4): ");
scanf("%d",&floor);
switch(floor){
case 1:printf("Your floor is 1\n");break;
case 2:printf("Your floor is 2\n");break;
case 3:printf("Your floor is 3\n");break;
case 4:printf("Your floor is 4\n");break;
default:printf("Floor is wrong in your enter");
}
system("pause");
return 0;
}
沒有留言:
張貼留言