#include<stdio.h>
int  numPrint(int);
int main()
{
    int n = 1;
	printf(" The natural numbers are :");
    numPrint(n);
    return 0;
}
int numPrint(int n)
{
    if(n<=50)
    {
         printf(" %d ",n);
         numPrint(n+1);
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: