C Program to print numbers from 1 to N without using semicolon?

#include
#define N 100

// Add your code here to print numbers from 1
// to N without using any semicolon
int main(int n)
{
   /* while(n <= N && printf("%d\n",n++))
    {
        
    }
    */
    
    if(n <= N && printf("%d\n",n) && main(n+1)){
        
    }
}


Comments