MCPcopy Create free account
hub / github.com/Rustam-Z/cpp-programming / main7

Function main7

Lab_03/Weekdays.cpp:7–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <iostream>
6using namespace std;
7int main7() {
8 int day ;
9 cout << "Enter the number from 1 to 7: ";
10 cin >> day;
11 switch (day) {
12 case 1:
13 cout << "Monday" << endl;
14 break;
15 case 2:
16 cout << "Tuesday" << endl;
17 break;
18 case 3:
19 cout << "Wednesday" << endl;
20 break;
21 case 4:
22 cout << "Thursday" << endl;
23 break;
24 case 5:
25 cout << "Friday" << endl;
26 break;
27 case 6:
28 cout << "Saturday" << endl;
29 break;
30 case 7:
31 cout << "Sunday" << endl;
32 break;
33 }
34 system("pause");
35 return 0;
36}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected