Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void printName(char* name,int count, int x)
- {
- printf("%s",name);
- count+=1;
- if(count < x)
- printName(name,count,x);
- }
- int main()
- {
- int x;
- char name[50], nam[50];
- scanf("%s",&name);
- scanf("%d",&x);
- printName(name,0,x);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement