Problem 1461. Duplicate a character

Duplicate a character 'n' times.

Example 1: str='a' n=5

output='aaaaa'

Example 2: str='*' n=3

output='***'

Solution Stats

37.98% Correct | 62.02% Incorrect
Last Solution submitted on Aug 03, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers228

Suggested Problems

More from this Author9

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!