Problem: String Repeater

Create a method RepeatString(str, count), which takes parameters of type string and an integer n and returns the string, repeated n times. After this print the result on the console.

Sample Input and Output

Input Output Input Output
strstr roki

Hints and Guidelines

Add to the method below the input string to the result that you will print:

Keep in mind that in C# concatenating strings in loops leads to bad productivity and is not recommended. Look for more effective solutions here:

Testing in the Judge System

Test your solution here:

results matching ""

    No results matching ""