Mode Gelap

Recent in Fashion

Best Seller Books

Given character or string should be multiplied by a number that much times. The range of the numbers to be 1 to 9.

CHARACTER MULTIPLIER

Given character or string should be multiplied by a number that much times. The range of the numbers to be 1 to 9.

Sample Input:
a1b3

Sample Output:
abbb

LANGUAGE: C

#include<stdio.h>
#include<string.h>
int main()
{
int num;
char b;
while(scanf("%c %d",&b,&num)==2)
{
while(num--)
{
printf("%c",b);
}
}
return 0;
}

Subscribe Our Newsletter

avatar
"By speaking behind my back, it means that you respect my existence enough not to act in front of my face."

Related Posts

0 Comment

Post a Comment

Article Top Ads

Parallax Ads

Article Center Ads

Article Bottom Ads