Skip to content

Commit 4e4fc62

Browse files
committed
Create main.cpp
1 parent 9a96e77 commit 4e4fc62

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

cpp_homework_1/main.cpp

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
//
2+
// main.cpp
3+
// main.cpp
4+
//
5+
// Created by Mark Semenov on 16.05.2022.
6+
//
7+
8+
#include <iostream>
9+
using namespace std;
10+
11+
int main(int argc, const char * argv[]) {
12+
13+
setlocale(LC_ALL, "English");
14+
15+
//Task 1
16+
17+
cout << " ----------------------------- ";
18+
cout << " | 10:35:52 |";
19+
cout << " | |";
20+
cout << " | Thursday, 21 April |";
21+
cout << " |-----------------------------|";
22+
cout << " | April 2022 |";
23+
cout << " | Mon Tue Wed Thu Fri Sat Sun |";
24+
cout << " | 28 29 30 31 1 2 3 |";
25+
cout << " | 4 5 6 7 8 9 10 |";
26+
cout << " | 11 12 13 14 15 16 17 |";
27+
cout << " | 18 19 20 21 22 23 24 |";
28+
cout << " | 25 26 27 28 29 30 1 |";
29+
cout << " | 2 3 4 5 6 7 8 |";
30+
cout << " ----------------------------- \n";
31+
32+
//Task 2
33+
34+
cout <<" Me and my sister ";
35+
cout <<" / \\ ";
36+
cout <<" / \\ ";
37+
cout <<" / \\ ";
38+
cout <<" My dad My mom ";
39+
cout <<" / \\ / \\ ";
40+
cout <<" / \\ / \\ ";
41+
cout <<" / \\ / \\ ";
42+
cout <<" My grandmother My grandpa My grandpa My grandmother \n";
43+
44+
//Task 3
45+
46+
cout << " ********* ** ** ********* *** ******* ";
47+
cout << " ********* ** ** ********* *** **** * ";
48+
cout << " *** ** ** *** **** ";
49+
cout << " ********* ** ** ********* *** **** ";
50+
cout << " ********* ** ** ********* *** **** ";
51+
cout << " *** ** ** *** *** **** ";
52+
cout << " *** ** ** *** *** **** ";
53+
cout << " *** ** ** *** *** **** * ";
54+
cout << " *** **** *** *** ******* ";
55+
}

0 commit comments

Comments
 (0)