adsense

Hii, welcome to my site. My name is Om prakash kartik. This blog helps you to learn programming languages concepts.

Print 1 to 10 numbers without using loop.

Print 1 to 10 numbers without using loop.


#include<stdio.h>
#include<conio.h>
  int nu();
  int main()
   {
   nu();
   nu();
   nu();
   nu();
   nu();
   nu();
   nu();
   nu();
   nu();
   nu();
       return(0);
     }
   int nu() 
    {
       static int i=1;
       printf("\t%d\n",i);
       i+=1;
     }
Output:- 

Post a Comment

0 Comments