Coding-
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
for(int i=1;i<=5;i++)
{
for(int j=1;j<=5;j++)
{
if(i>j)
printf("*");
}
printf("\n);
}
getch();
}
OUTPUT-
*
* *
* * *
* * * *
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
for(int i=1;i<=5;i++)
{
for(int j=1;j<=5;j++)
{
if(i>j)
printf("*");
}
printf("\n);
}
getch();
}
OUTPUT-
*
* *
* * *
* * * *
Comments
Post a Comment
Please Subscribe and Comments my blog site.