write a program in java to print pattern of pyramid
Attachments:
![](https://hi-static.z-dn.net/files/d07/2600ca2313b8a7fce21eaaea748588af.jpg)
Answers
Answered by
2
class pyramid
{
int i,s,j;
void brainly()
{
for(i=1;i<=7;i++)
{
for(s=1;s<sp;s++)
System.out.print(" ");
System.out.println();
for(j=3;j,=i;j++)
System.out.print("*");
System.out.println();
}
}
}
_____________________________________________________
if it helped you then mark it as the brainliest...............
_____________________________________________________
{
int i,s,j;
void brainly()
{
for(i=1;i<=7;i++)
{
for(s=1;s<sp;s++)
System.out.print(" ");
System.out.println();
for(j=3;j,=i;j++)
System.out.print("*");
System.out.println();
}
}
}
_____________________________________________________
if it helped you then mark it as the brainliest...............
_____________________________________________________
Similar questions
CBSE BOARD X,
8 months ago
Computer Science,
8 months ago
History,
8 months ago
History,
1 year ago
Math,
1 year ago
Math,
1 year ago