You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
570 B

#include <stdio.h>
int main( )
{
int num_spaces =30;
printf("%*s1.Input\n",num_spaces," ");
printf("%*s2.Output\n",num_spaces," ");
printf("%*s3.Order\n",num_spaces," ");
printf("%*s4.Quit\n",num_spaces," ");
char a;
again:a=getchar();
switch(a)
{
case'i':printf("You are trying to Input info");break;
case'o':printf("You are trying to Output info");break;
case'm':printf("You are trying to Make things orderd");break;
case'q':printf("You are about to Quit");break;
case'\n':printf("\n");break;
default:printf("Wrong input");
}
goto again;
}
1 year ago