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:
Sample Output:
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
0 Comment
Post a Comment