-
Notifications
You must be signed in to change notification settings - Fork 0
/
ritik.cpp
87 lines (80 loc) · 1.57 KB
/
ritik.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#include <iostream>
using namespace std;
void print_R()
{
int count = 6;
for (int i = 0; i < 10; i++)
{
for (int j = 0; j < 10; j++)
{
if (j == 0 || i == 0 || i == 4 || (j == 9 && i <= 4))
cout << "*";
else if ((j == 2 && i == 5) || (j == 4 && i == 6) || (j == 6 && i == 7) || (j == 8 && i == 8) || (j == 9 && i == 9))
{
cout << "*";
}
else
cout << " ";
}
cout << endl;
}
}
void print_I()
{
for (int i = 0; i < 10; i++)
{
for (int j = 0; j < 10; j++)
{
if (i == 0 || i == 9 || j == 4)
cout << "*";
else
cout << " ";
}
cout << endl;
}
}
void print_T()
{
for (int i = 0; i < 10; i++)
{
for (int j = 0; j < 10; j++)
{
if (i == 0 || j == 4)
cout << "*";
else
cout << " ";
}
cout << endl;
}
}
void print_K()
{
for (int i = 0; i < 10; i++)
{
for (int j = 0; j < 10; j++)
{
if (j == 0)
cout << "*";
if ((i + j == 6 && i <= 4) || (i - 1 == j && i > 4))
cout << "*";
else
cout << " ";
}
cout << endl;
}
}
int main()
{
cout << "\n\n";
print_R();
cout << "\n\n";
print_I();
cout << "\n\n";
print_T();
cout << "\n\n";
print_I();
cout << "\n\n";
print_K();
cout << endl;
return 0;
}