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