Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- void Clean(int floor)
- {
- if(floor==0)
- {
- return;
- }
- else
- Clean(floor-1);
- printf("%d th Floor is Clean\n",floor);
- }
- int main()
- {
- int floor = 5;
- Clean(floor);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement