//12. Lee un número entre 1 y 7 e indica si es día laboral o fin de semana.
#include <iostream>
using namespace std;
int main() {
// Write C++ code here
std::cout << "PROGRAMA PARA SABER SI ES DIA LABORAL O FIN DE SEMANA "<<endl;
int dia;
cout<<"ingrese el dia de la semana de 1 a 7 "<<endl;
cin>>dia;
if((dia<=1)||(dia<=5))
{
cout<<"CORRESPONDE A UN DIA LABORAL"<<endl;
}else
{
cout<<"CORRESPONDE A FIN DE SEMANA "<<endl;
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: