Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- int main(int argc, char *argv[])
- {
- int fin = 0;
- int opc;
- while (fin == 0)
- {
- system("cls");
- printf("Menú simple\n\n");
- printf("\t1] Ejecutar.\n");
- printf("\t2] Ayuda.\n");
- printf("\t3] Salir.\n");
- printf("\n\nOpcion: ");
- scanf("%i", &opc);
- switch(opc)
- {
- case 1:
- break;
- case 2:
- break;
- case 3:
- fin = 1;
- break;
- default:
- fin = 0;
- break;
- }
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement