File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 11# Implement this exercise from C++ to Python
22#
3+
34# #include <iostream>
45# using namespace std;
56#
1112# cout << "Enter week number(1-7): " << endl;
1213# cin >> week;
1314#
15+ # if (week == 1)
16+ # {
17+ # cout << "Monday" << endl;
18+ # }
19+ # else if (week == 2)
20+ # {
21+ # cout << "Tuesday" << endl;
22+ # }
23+ # else if (week == 3)
24+ # {
25+ # cout << "Wednesday" << endl;
26+ # }
27+ # else if (week == 4)
28+ # {
29+ # cout << "Thursday" << endl;
30+ # }
31+ # else if (week == 5)
32+ # {
33+ # cout << "Friday" << endl;
34+ # }
35+ # else if (week == 6)
36+ # {
37+ # cout << "Saturday" << endl;
38+ # }
39+ # else if (week == 7)
40+ # {
41+ # cout << "Sunday" << endl;
42+ # }
43+ # else
44+ # {
45+ # cout << "Invalid input! Please enter week number between 1-7." << endl;
46+ # }
47+ #
1448# return 0;
1549# }
You can’t perform that action at this time.
0 commit comments