write a program in Java to display the following program
Attachments:
Answers
Answered by
5
Initiate integers then,
for(i=1; i =<5 ;++i){
System. out.println();
for(j=1;j<=i ;++j)
System. out.print("a");
}
for (i=4;i>=1;--i){
System. out.println();
for(j=4;j>=i;--j)
System. out. print("a");
}
for(i=1; i =<5 ;++i){
System. out.println();
for(j=1;j<=i ;++j)
System. out.print("a");
}
for (i=4;i>=1;--i){
System. out.println();
for(j=4;j>=i;--j)
System. out. print("a");
}
Nik7117:
I am sorry to say that your program is wrong
Answered by
3
the attachment is your answer
Attachments:
Similar questions