Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Program: diasemana.cc
- // Author: Yoan Pinzon
- // Date: Agosto 30, 2006
- #include <iostream>
- using namespace std;
- int main()
- {
- int dia;
- cout << "Dia de la semana" << endl;
- cout << "================" << endl;
- cout << "Entre un numero (1-7)= "; cin >> dia;
- switch( dia )
- {
- case 1: cout << "Domingo" << endl; break;
- case 2: cout << "Lunes" << endl; break;
- case 3: cout << "Martes" << endl; break;
- case 4: cout << "Miercoles" << endl; break;
- case 5: cout << "Jueves" << endl; break;
- case 6: cout << "Viernes" << endl; break;
- case 7: cout << "Sabado" << endl; break;
- default: cout << "No entiendo" << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement