-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathI1SwitchCase.cpp
42 lines (38 loc) · 868 Bytes
/
I1SwitchCase.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include<iostream>
using std::cout;
using std::string;
using std::cin;
using std::endl;
int main( ){
int daysNo;
cout<<"Enter the week Day no as Sunday is 1 : -- > ";
cin>>daysNo;
switch (daysNo)
{
case 1:
cout<<" Its Sunday";
break;
case 2:
cout<<" Its Monday";
break;
case 3:
cout<<" Its Tuesday";
break;
case 4:
cout<<" Its Wednesday";
break;
case 5:
cout<<" Its Thursday";
break;
case 6:
cout<<" Its Friday";
break;
case 7:
cout<<" Its Saturday";
break;
default:
cout<<"YOu Entered out of 1 - 7 days";
break;
}
return 0;
}