pablosotol

Guia Programacion 1 - Ejercicio 12

Mar 26th, 2015
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. #include<stdio.h>
  2. int main(){
  3.     int opc,x;
  4.     while(x!=1){
  5.     printf("\n\nIngrese la opcion la cual desea revisar: ");
  6.     scanf("%d",&opc);
  7.     switch(opc){
  8.     case 1: printf("\nA");
  9.     break;
  10.     case 2: printf("\nB");
  11.     break;
  12.     case 3: printf("\nC");
  13.     break;
  14.     case 4: x=1;
  15.     break;
  16.     default: printf("Error en el numero, es del 1 al 4 solamente");
  17.     }
  18.     }
  19.  
  20.  
  21.  
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment