Monday, March 26, 2012

Wap to print 1 12 123

No comments

/*It is complied on Turbo C++ 3.0*/  

#include<stdio.h>
#include<conio.h>
    void main()
       {
 int i,result=0;
 clrscr();
 for(i=1;i<5;i++)
 {

    result=result*10+i;
    printf("\n%d",result);

  }
   getch();
   }
OutPut

0 comments:

Post a Comment

Entries RSS Comments RSS

Sample Text

Pages


Copyright © Lovely Codes
Powered by Blogger
Distributed By Free Blogger Templates | Design by N.Design Studio
Blogger Theme by Lasantha - PremiumBloggerTemplates.com