Răspuns:
#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
if(n == 1){
cout<<"Luni";
}else if( n == 2){
cout<<"Marti";
}else if (n == 3){
cout<<"Miercuri";
}else if(n == 4){
cout<<"Joi";
}else if(n == 5){
cout<<"Vineri";
}else if(n == 6){
cout<<"Sambata";
}else if(n == 7){
cout<<"Duminica";
}
return 0;
}
Explicație: