Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void fun(int n)
- {
- if(n>0)
- {
- fun(n-1);
- cout <<n<<endl;
- }
- }
- int main()
- {
- int x=5;
- fun(x);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement