Codey and CodeNection

https://www.hackerrank.com/contests/codenection-2023-preliminary-round-closed-category/challenges/cn-c1

Question

Codey is joining CodeNection for the first time and it is loving it! Help Codey express itself by printing the string I LOVE CODENECTION n times.

Input Format

The first line contains an integer n, which represents the number of times Codey wants to express love for CodeNection.

Constraints

0≤∣n∣≤1050 \le |n| \le 10^5

Output Format

Output the string I LOVE CODENECTION followed by a new line for n times.

Sample Inputs:

Input

2

Output

I LOVE CODENECTION 
I LOVE CODENECTION

Explanation

When n is 2, the output is the string "I LOVE CODENECTION" printed 2 times, each separated by a new line


Solution - Traditional Loop

This is trivial, just loop I LOVE CODENECTION based on user inputs.

for i in range(int(input())):
    print("I LOVE CODENECTION")

Last updated