Skip to content

Commit 27abb0c

Browse files
committed
Create daysOfTheWeek.cpp
1 parent 1fb11a9 commit 27abb0c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

daysOfTheWeek.cpp

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#include <iostream>
2+
3+
using namespace std;
4+
5+
int main()
6+
{
7+
int n;
8+
char ar[7][15] = {"Sunday", "Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"};
9+
cin>> n;
10+
cout<<ar[n-1];
11+
return 0;
12+
}
13+

0 commit comments

Comments
 (0)