SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 90 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.         printf("\n");
  8.         return;
  9.     }
  10.     else
  11.     printf("%d th Floor Left Side is Clean\n",floor);
  12.     Clean(floor-1);
  13.     printf("%d th Floor Right Side is Clean\n",floor);
  14. }
  15.  
  16.  
  17. int main()
  18. {
  19.  
  20.     int floor = 5;
  21.     Clean(floor);
  22. }
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