-
Notifications
You must be signed in to change notification settings - Fork 340
/
HacktoberPrinting.cpp
85 lines (77 loc) · 3.81 KB
/
HacktoberPrinting.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
#include <iostream>
using namespace std;
int main() {
for(int i=1;i<=6;i++){
for(int j=1;j<=99;j++){
if(i==1&&(
j==1||j==2||j==8||j==9||
(j>=13&&j<=19)||
(j>=23&&j<=32)||
j==35||j==36||j==40||j==41||
(j>=44&&j<=53)||
(j>=56&&j<=65)||
(j>=68&&j<=75)||
(j>=79&&j<=88)||
(j>=91&&j<=99)
)){cout<<"*";}
if(i==2&&(
j==1||j==2||j==8||j==9|| //H
(j>=12&&j<=20)|| //A
(j>=23&&j<=32)|| //C
j==35||j==36||j==40||j==39|| //K
(j>=44&&j<=53)|| //T
(j>=56&&j<=65)|| //O
j==68||j==69||j==74||j==75|| //B
(j>=79&&j<=80)|| //E
j==91||j==92||j==97||j==98 //R
)){cout<<"*";}
if(i==3&&(
(j>=1&&j<=9)|| //H
j==12||j==13||j==20||j==19|| //A
(j==23&&j<=24)|| //C
(j>=35&&j<=39)|| //K
(j>=49&&j<=50)|| //T
j==56||j==57||j==64||j==65|| //O
j==68||j==69||j==74||j==75|| //B
(j>=79&&j<=88)|| //E
j==91||j==92||j==97||j==96 //R
)){cout<<"*";}
if(i==4&&(
(j>=1&&j<=9)|| //H
(j==12&&j<=19)|| //A
(j==23&&j<=24)|| //C
(j>=35&&j<=39)|| //K
(j>=49&&j<=50)|| //T
j==56||j==57||j==64||j==65|| //O
(j==68&&j<=74)|| //B
(j>=79&&j<=88)|| //E
(j==91&&j<=96) //R
)){cout<<"*";}
if(i==5&&(
j==1||j==2||j==8||j==9|| //H
j==12||j==13||j==20||j==19|| //A
(j>=23&&j<=32)|| //C
j==35||j==36||j==40||j==39|| //K
(j>=49&&j<=50)|| //T
(j>=56&&j<=65)|| //O
j==68||j==69||j==75|| //B
(j>=79&&j<=80)|| //E
j==91||j==92||j==97||j==98 //R
)){cout<<"*";}
if(i==6&&(
j==1||j==2||j==8||j==9|| //H
j==12||j==13||j==20||j==19|| //A
(j>=23&&j<=32)|| //C
j==35||j==36||j==40||j==41|| //K
(j>=49&&j<=50)|| //T
(j>=56&&j<=65)|| //O
(j==68&&j<=74)|| //B
(j>=79&&j<=88)|| //E
j==91||j==92||j==99||j==98 //R
)){cout<<"*";}
else{cout<<" ";}
}
cout<<endl;
}
return 0;
}