Răspuns:
#include <iostream>
using namespace std;
int main()
{
int n;
cin>>n;
if(n==1)
cout<<"LUNI";
if(n==2)
cout<<"MARTI";
if(n==3)
cout<<"MIERCURI";
if(n==4)
cout<<"JOI";
if(n==5)
cout<<"VINERI";
if(n==6)
cout<<"SAMBATA";
if(n==7)
cout<<"DUMINICA";
return 0;
}
Explicație: