SHARE
TWEET

Untitled

a guest Apr 23rd, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. void printName(char* name,int count, int x)
  3. {
  4.  
  5.  
  6.     printf("%s",name);
  7.     count+=1;
  8.     if(count < x)
  9.         printName(name,count,x);
  10. }
  11.  
  12. int main()
  13. {
  14.     int x;
  15.     char name[50], nam[50];
  16.     scanf("%s",&name);
  17.     scanf("%d",&x);
  18.     printName(name,0,x);
  19.     return 0;
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top