C language 6.0

For beginners in C language, I hope to forgive me; I have written if statements before, and today I write nested if statements;
int main()
{
int iDay;
int Monday=1,Tuesday=2,Wednesday=3,Turesday=4,Firday=5 ,
Saturday=6,Sunday=7;
printf("Enter a day of a week to get course\n");
scanf("%d",&iDay);

if(iDay>Firday)
{
if(iDay==Saturday)
{
printf("go shopping with friends\n");
}
else
{
printf("at home with families\n");
}
}
else
{
if(iDay= =Monday)
{
printf("have a meeting with company\n");
}
else
{
printf("working with partner\n");
}
}
return 0;
}
This is a relatively simple nesting, if there is a bias , I hope to forgive me;

Guess you like

Origin blog.51cto.com/15098536/2621897