MUstar

IoT C언어 0424 - 7-6

Apr 24th, 2017
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.17 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. void fruit(int n);
  4.  
  5. int main(void)
  6. {
  7.     fruit(1);
  8.  
  9.     return 0;
  10. }
  11.  
  12. void fruit(int n)
  13. {
  14.     printf("apple\n");
  15.     if(n==3)return;
  16.     fruit(n+1);
  17. }
Add Comment
Please, Sign In to add comment