#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[])
{
int id;
scanf("%d",&id) ;
switch(id)
{
case 2:
case 3:
case 4:
printf("John\n");break;
case 5:
printf("Mary\n");break;
case 6:
printf("Amy\n");break;
default:
printf("not found\n");
}
return 0;
}
沒有留言:
張貼留言