Q:

print range of numbers without loop

#include <iostream> 
using namespace std; 
int main() 
{ 
    static int i = 1; 
    if (i <= 100) 
    { 
        cout << i++ << " "; 
        main(); 
    } 
    return 0; 
} 
3

New to Communities?

Join the community