#include<stdio.h>
void
print_char(char,int);
void main()
{
int n;
char ch;
printf("Enter character>>
");
scanf("%c",&ch);
printf("Enter n>> ");
scanf("%d",&n);
print_char(ch,n);
}
void
print_char(char ch,int
n)
{
int i;
for(i=1;i<=n;i++)
printf("%c",ch);
}
Download Source Code
Next Question
No comments:
Post a Comment