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.

35 lines
682 B

#include <stdio.h>
int main()
{
int i;
for(i=30;i>=1;i--) printf(" ");
printf("1.Input\n");
for(i=30;i>=1;i--) printf(" ");
printf("2.Output\n");
for(i=30;i>=1;i--) printf(" ");
printf("3.Order\n");
for(i=30;i>=1;i--) printf(" ");
printf("1.Quit\n");
char x;
scanf("%c",&x);
switch(x)
{
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 tings Ordered");break;
case 'q':printf("You are about to Quit");break;
default:printf("Wrong Input");
}
}
printf("%0.1f",sum);
printf("\n");
sum=0;
}
}
}
}