7
3 PROGRAMAS DE WHILE #include <iostream> #include <cstdlib> #include <cmath> #include <stdlib.h> #include <time.h> using namespace std; void menu(); void tablas(); void aleatorio(); void libros(); using namespace std; int main(int argc, char** argv) { int opcion; do{ menu(); cin>>opcion; switch(opcion){ case 1: tablas(); cout<<endl; break; case 2: aleatorio(); cout<<endl; break; case 3: libros();

3 Programas de While

  • Upload
    enrique

  • View
    227

  • Download
    0

Embed Size (px)

DESCRIPTION

ing. en computacion

Citation preview

  • 3 PROGRAMAS DE WHILE

    #include

    #include

    #include

    #include

    #include

    using namespace std;

    void menu();

    void tablas();

    void aleatorio();

    void libros();

    using namespace std;

    int main(int argc, char** argv) {

    int opcion;

    do{

    menu();

    cin>>opcion;

    switch(opcion){

    case 1:

    tablas();

    cout

  • 3 PROGRAMAS DE WHILE

    cout

  • 3 PROGRAMAS DE WHILE

    }

    cout

  • 3 PROGRAMAS DE WHILE

    cout

  • 3 PROGRAMAS DE WHILE

    double a,b,c,d,e,f,subtotal,restotal,contado,credito,desc1,desc2,descontado;

    cout

  • 3 PROGRAMAS DE WHILE

    coutopcion;

    if (opcion==1){

    cout

  • 3 PROGRAMAS DE WHILE

    NUMEROS ALEATORIOS

    LIBROS; DISCOS; CUADERNOS