Parcial 3

  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Parcial 3 as PDF for free.

More details

  • Words: 151
  • Pages: 1
//Flores_Pintos_lenguajeI #include <stdio.h> #include int main () { int a;int b;int c;int d; printf("Elija una de las opciones\n1:Ingresar dato\n2:Borrar dato\n3:Modificar dato\n4:Mostrar dato\n"); scanf("%i",&a); while (a>0) { switch(a) { case 1: printf("Insertar dato\n"); printf ("Ingrese el valor:"); scanf ("%i", &c); getche (); printf ("- Presione enter para continuar -"); break; case 2: printf("Desea Borrar el Dato?\n"); printf ("El valor era = %i",c); c=0; printf ("Ahora el valor es 0"); getche (); printf ("\n- Presione enter para continuar -"); break; case 3: printf("Desea modificar el dato?\n"); printf ("Ingrese un nuevo valor="); scanf ("%i", &b); c=b; printf ("Nuevo valor es=%i", c); getche (); printf ("\n- Presione enter para continuar -"); break; case 4: printf("El dato es %i", c); scanf ("%i", &d); d=c; getche (); printf ("\n- Presione enter para continuar -"); break; default: printf("la opcion es %i\n",a); } printf("\n\nElija una de las opciones\n1:Ingresar primer dato\n2:Borrar dato\n3:Modificar dato\n4:Mostrar dato\n"); scanf("%i",&a); } return 0; }

Related Documents

Parcial 3
June 2020 3
Parcial 3
June 2020 5
Parcial 3
April 2020 3
Guia Ppr 3 Parcial
December 2019 6