BETA
School Problem's Submission isn't counted in score!

Total Submissions: 1334 Accuracy:

43.85%

C++ Loops | Set 1 (Print a string N times)
       

Given an integer N. The task is to print "GeeksforGeeks" N times (without quotes). Every time "GeeksforGeeks" will be printed on a new line.

Input:

The first line contains a single integer T i.e. the number of test cases. Each test case contains a single integer N representing number of times the string "GeeksforGeeks" will be printed.
 

Output:

Corresponding to each test case, print "GeeksforGeeks" N times (without quotes), every time on a new line.

Constraints:
1<=T<=20
1<=N<=100

Example:

Input:
2
3
2

Output:
GeeksforGeeks
GeeksforGeeks
GeeksforGeeks
GeeksforGeeks
GeeksforGeeks

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Harsh Agarwal

Set Default Code

					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.