adsense

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

write a program in C to print 1 to 10 without any loop.

write a program in C to print 1 to 10 without any loop.


#include<stdio.h>
#include<conio.h>
 void main()
  {
  int i=1;
  clrscr();
  start:
     printf("%3d\n",i);
      i++;
     if(i<=10)
      goto start;
    getch();
    }



Output:-

Post a Comment

0 Comments