BETA
C++ Loops | Set 1 (Print a string N times)
Submissions: 3362   Accuracy:

45.12%

  Difficulty: School
*School Problem's Submission isn't counted in score!
     

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
Author: harsh.agarwal0


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