Quick Print – CSKC
Sign In

Search

siteicon
Solved Problem #CPP#2218 Back

Problem Statement - Repeating a character using loop

Write a program to repeat the character as given by the user for number of times as desired by the user. Show the repeated character in the same line. Use for loop for repeatition.

Solution

		 

Run Output

Give a single character :  #
Give repetition count : 5
#####