Exercise 2: Strings

Let's test your understanding of strings.

Problem Statement

Print a string stored in a variable testVariable thrice by repeating the same string.

Use cat() to display text on the screen.

Input

A testVariable containing the character string being used.

Output

Print the string three times.

Sample Input

learning is fun and easy

Output

learning is fun and easy learning is fun and easy learning is fun and easy

Test Yourself

Write your code in the given area. If you get stuck, you can look at the solution.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy