[Solved] C++ program . The program should use recursion and looping [closed]


This one could be

#include <bits/stdc++.h>

using namespace std;

int main(){

int i;

for(int i=1; i<10; i++){
    string binary = bitset<8>(i).to_string();
    cout << binary << endl;
}
return 0;
}

8 is bitset here.

3

solved C++ program . The program should use recursion and looping [closed]