22 lines
349 B
C
22 lines
349 B
C
|
# include<stdio.h>
|
||
|
int main()
|
||
|
{
|
||
|
int i;
|
||
|
printf("Please input the value of i from 1 to 5:\n");
|
||
|
scanf("%d",&i);
|
||
|
if(i==1)
|
||
|
visit();
|
||
|
else if(i==2)
|
||
|
study();
|
||
|
else if(i==3)
|
||
|
play();
|
||
|
else if(i==4)
|
||
|
watch();
|
||
|
else if(i==5)
|
||
|
listen();
|
||
|
else
|
||
|
printf("nothing to do\n");
|
||
|
printf("This is a wonderful day\n");
|
||
|
return 0;
|
||
|
}
|