SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2.  
  3. void Clean(int floor)
  4. {
  5.     if(floor==0)
  6.     {
  7.         return;
  8.     }
  9.     else
  10.     Clean(floor-1);
  11.     printf("%d th Floor is Clean\n",floor);
  12. }
  13.  
  14.  
  15. int main()
  16. {
  17.  
  18.     int floor = 5;
  19.     Clean(floor);
  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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top