Skip to content

Commit 52b1766

Browse files
committed
705A.Hulk added
1 parent 955720e commit 52b1766

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

705A.Hulk.cpp

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#include <iostream>
2+
using namespace std;
3+
int a;
4+
int main() {
5+
cin >> a;
6+
for (int i = 0; i < a; i++) {
7+
if (i % 2 == 0) {
8+
cout << "I hate ";
9+
} else {
10+
cout << "I love ";
11+
}
12+
if (i != a - 1) {
13+
cout << "that ";
14+
} else {
15+
cout << "it ";
16+
}
17+
}
18+
}

0 commit comments

Comments
 (0)