Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main(){
- int opc,x;
- while(x!=1){
- printf("\n\nIngrese la opcion la cual desea revisar: ");
- scanf("%d",&opc);
- switch(opc){
- case 1: printf("\nA");
- break;
- case 2: printf("\nB");
- break;
- case 3: printf("\nC");
- break;
- case 4: x=1;
- break;
- default: printf("Error en el numero, es del 1 al 4 solamente");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment