Print 1 to N C++ print_1toN.cpp 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16#include <bits/stdc++.h> using namespace std; void print_1toN(int n){ if(n==0) return; print_1toN(n-1); cout << n << " "; } int main() { int n; cin >> n; print_1toN(n); return 0; } Output 5 1 2 3 4 5