Advertisement
Guest User

Untitled

a guest
May 25th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.69 KB | None | 0 0
  1. while(cOpcionComercio == 's' || cOpcionComercio == 'S') {
  2.  
  3.         printf("Ingrese el nombre del comercio: ");
  4.         scanf("%s", &Comercio.Nombre);
  5.  
  6.         printf("\nDesea ingresar un producto ? <S/N>");
  7.         printf("\nOpcion: ");
  8.         scanf("%c", &cOpcionProducto);
  9.  
  10.         while(cOpcionProducto == 's' || cOpcionProducto == 'S') {
  11.             printf("\nIngrese tiempo de llamada en minutos, mayor a 0: ");
  12.             scanf("%i", &Comercio.DuracionLlamada);
  13.  
  14.             if(iConfirmarDuracion > 0){
  15.                 Comercio.DuracionLlamada = iConfirmarDuracion;
  16.             }
  17.  
  18.             iAntDuracion = Comercio.DuracionLlamada;
  19.  
  20.             if(iAntDuracion < iConfirmarDuracion) {
  21.                 MasLarga.DuracionLlamada = iAntLlamada;
  22.                 MasLarga.Codigo = Comercio.Codigo;
  23.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement