PracticeDev/study_clang/makefile_1/m.c

22 lines
349 B
C
Raw Normal View History

2022-12-20 17:31:11 +08:00
# 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;
}