3 Programas de While
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();
description
ing. en computacion
Transcript of 3 Programas de While
-
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