Techknow Study

A isosceles triangle........

9:41:00 PM vikas 0 Comments Category :

A isosceles triangle........


PROGRAM>>

#include<conio.h>
#include<stdio.h>

void main()
{

int i,j,k;
clrscr();
for(i=1;i<=5;i++)
{
printf("\n");

for(j=5;j>=i;j--)
{
printf(" ");
}
for(j=1;j<=5;j++)
{
if((5-j)<=(i-1))
{
printf("*");
}
}

for(j=1;j<=5;j++)
{
if(j>=i)
printf(" ");

else
printf("*");
}
}
getch();
}


............................

RELATED POSTS

0 comments