-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLab-3.cpp
42 lines (35 loc) · 806 Bytes
/
Lab-3.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>
#include <cmath>
using namespace std;
int main()
{
int x, y, z;
cin >> x >> y;
if ((x != 0) and (y != 0)) {
z = (min(0, x) - min(0, y)) / (pow(max(y, x), 2));
switch(z) {
case 0:
cout << "Monday";
break;
case 1:
cout << "Tuesday";
break;
case 2:
cout << "Wednesday";
break;
case 3:
cout << "Thursday";
break;
case 4:
cout << "Friday";
break;
case 5:
cout << "Saturday";
break;
case 6:
cout << "Sunday";
break;
}
}
return 0;
}