Computer Science, asked by aloksinghkumar, 1 year ago

write a program in java to print pattern of pyramid

Attachments:

Answers

Answered by CuteSiddhi
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...............
_____________________________________________________
Similar questions