#include <stdio.h>
#include <stdlib.h>
int main()
{
int i;
int j;
float a;
char c[1];
int menu[] = {1,2,3,4};
int menu2[]={'a','b','c','d'};
do{
printf("Level One\n");
for(i=0;i<4;i++)
{
printf("%d) Menu %d\n",menu[i], menu[i]);
}
printf("Selection:\n");
scanf("%f",&a);
system("cls");
printf("Level Two\n");
for(j=0;j<4;j++)
{
printf("%c) Menu %1.0f%c\n",menu2[j],a,menu2[j] );
}
printf("e) Return\n");
printf("Selection:\n");
scanf("%s",c);
system("cls");
printf("You selected %1.0f%s.\n\n",a,c);
}
while(c[0]=='e');
return 0;
}
GOOD PROGRAM STRUCTURE JUST NEEDS VERBAGE
Info on African oil can be found here:http://oilrun.blogspot.com/
No comments:
Post a Comment