int main()
{
int I;
Printf ("Enter integer variable i: \ n");
scanf("%d ",& ampI);
if(I = = 1)printf(" Monday \ n ");
Else if(i==2)printf ("Tuesday \ n");
Else if(i==3)printf ("Wednesday \ n");
else if(I = = 4)printf(" Thursday \ n ");
else if(I = = 5)printf(" Friday \ n ");
Else if(i==6)printf ("Saturday \ n");
else if(I = = 7)printf(" Sunday \ n ");
Otherwise;
Returns 0;
}
Let's see if it works. . .