Sunday, 9 November 2014

Print 1,10,100,1000

Print 1,10,100,1000.

#include<stdio.h>
#include<conio.h>
void main()
{
     int i=10;
     xyz:
     printf("%d",i);
     i=i*10;
     if(i<=1000)
     {
         goto xyz;

            }
                getch();

          }

No comments:

Post a Comment