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!


Sunday, 6 May 2012

STAR PATTERN

Filled under: ,



GENERATE STAR PATTERN
*
***
*****
*******
*********
CODE:

#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,k,a;
clrscr();
printf("enter the number of line");
scanf("%d",&a);
for(i=1;i<=a;i++)
{
for (j=1;j<=a-i;j++)
{
printf(" ");
}
for(k=1;k<=2*i-1;k++)
printf("*");
printf("\n");
}
printf("operation completed!!!!");
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