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

42.32%

  Difficulty: School   Marks: 0
*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. For 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.

to report an issue on this page.