Q.. Using loops. Write a program that output to message box the following shape | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Q.. Using loops. Write a program that output to message box the following shape

the shape is. @@@@@@@ @@@@@ @@@ @ Hi every one i am very excited to join this wow community if anyone can help me out here with my java loop problem. I will appreciate that Thanks

24th May 2017, 12:23 PM
Mohmmed Nadhem Saif
Mohmmed Nadhem Saif - avatar
5 Answers
+ 1
What have you tried and what didn't work?
24th May 2017, 1:10 PM
Igor B
Igor B - avatar
+ 1
I would suggest you show us the code so we can see how we can help
24th May 2017, 12:34 PM
Louis Botha
Louis Botha - avatar
0
i need code that output that shape above using loop..any kind of loops..
24th May 2017, 12:38 PM
Mohmmed Nadhem Saif
Mohmmed Nadhem Saif - avatar
0
will provide you c++ code for that not java
24th May 2017, 4:14 PM
Zeeshan Salam
Zeeshan Salam - avatar
0
for( int y=4;y>=1;y--) { for ( int x=0; x<5-y;x++) System.out.println( " " ); for (int x=(2-y);x<(2-y)+(2*y-1);x++) System.out.print("@"); System.out.println(); thats the answer i was looking for guys i solved it and it works try it if you want
25th May 2017, 12:20 AM
Mohmmed Nadhem Saif
Mohmmed Nadhem Saif - avatar