USER'S CHOICE POST

Internet Download Manager free download for life time activated
Top 10 software you must have in your computer/laptop/tab with free download link

Earn upto Rs. 9,000 pm checking Emails. Join now! And get Rs. 99 Instantly!

ALL THE INFORMATION GIVEN IN THIS SITE IS ONLY FOR THE LEARNING PURPOSE. WE SHOULD ALWAYS USE THE GENUINE SOFTWARE! USE OF ANY INFORMATION GIVEN HERE IS SOLELY USERS' RESPONSIBILITY!


Wednesday, 16 May 2012

GENERATE PATTERN: 1 232 34543 4567654

Filled under: ,


GENERATE PATTERN:
       1
     232
   34543
  4567654

CODE:

#include<stdio.h>
#include<conio.h>
void main()
{
  int i,j,k,l,d=0;
  for(i=0;i<4;i++)
  {
for(j=4;j>=i;j--)
{
printf(" ");
}
for(k=0;k<=i;k++)
{
printf("%d",++d);
}
for(l=i;l>0;l--)
{
printf("%d",--d);
}
printf("\n");
  }
}



<<IMPORTANT >>
THIS PROGRAM HAS BEEN RUN IN TURBO C++ V4.5
IF YOU ARE USING LOWER VERSION DONT FORGET TO ADD "CLRSCR(); & GETCH();"




DON'T FORGET TO JOIN THIS BLOG & LIKE OUR FB FAN PAGE.. SHARE IT WITH YOUR FRIEND

0 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...


Try New Whatsapp+ latest for free with lots of new Emoticons :) , Latest Version
Download NOW