Skip to content

Instantly share code, notes, and snippets.

@RhoKratos
Created October 15, 2017 04:37
Show Gist options
  • Save RhoKratos/ef9ed05c274444b6fde9caadcd30baad to your computer and use it in GitHub Desktop.
Save RhoKratos/ef9ed05c274444b6fde9caadcd30baad to your computer and use it in GitHub Desktop.
Menuú
{
int op;
printf("\n1-.Comer\n2-.Pagar\n3-.Tomar\n4-.Correr\n");
scanf("%d", &op);
switch (op)
{
case 1 :
printf("\nPues come");
menu();
break;
case 2 :
printf("\nPues paga");
menu();
break;
case 3 :
printf("\nPues toma");
menu();
break;
case 4:
break;
default:
printf("\nEscriba otra opcion\n");
menu();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment