Saturday, August 10, 2019

Star patterns in cprograms

Star patterns in Cprograms:

star patterns in cprograms




*****
****
***
**
*

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

void main()
{
int i,j;
clrscr();
for(i=1;i<=5;i++)
{
for(j=5;j>=i;j--)
{
if(i>=j)
{
printf("*");
}
else if(i<=j)
{
printf("*");
}
}
printf("\n");
}
getch();
}


EmoticonEmoticon

:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:o
:>)
(o)
:p
:-?
(p)
:-s
8-)
:-t
:-b
b-(
(y)
x-)
(h)