Pages

Adsense responsive

Saturday, 16 February 2013

C PROGRAM: TO PRINT PATTERN OF 12345

CODING:
#include<conio.h>
#include<stdio.h>
void main()
{
 int i,j;
 clrscr();
 for(i=1;i<=5;i++)
 {
  for(j=1;j<=i;j++)
  {
   printf("%3d",j);
  }
  printf("\n");
 }
 getch();
}


CODING

OUTPUT

For any query or suggestion please comment below...

1 comment:

  1. Thanks a lot for sharing your knowledge with us. You have been most beneficial to me as I was looking for this for a long time.

    ReplyDelete