Program to print natural numbers upto N without using semi-colon.

 Program to print natural numbers upto N without using semi-colon.


#include<stdio.h>
#define N 10
int main(int num)
{
if(num <= N && printf("%d ",num) && main(num+1))
{
}
}

OUTPUT:
1 2 3 4 5 6 7 8 9 10

0 Comments