0

Does any body know how to print half diamond even numered pattern using only while loop in JAVA? For example as shown below.

**2 ****4 ******6 ****4 **2 https://code.sololearn.com/c9v4xTcFn2yj I couldn't figure out the rest and also what equation to put in "??" for the first half.

24th Mar 2020, 12:12 AM
Dipesh
Dipesh - avatar
4 Antworten
+ 4
These tasks are meant for you to train your logical skill in programming. You should really try to solve them yourself. If you show us your attempt, we may give you a hint.
24th Mar 2020, 12:40 AM
HonFu
HonFu - avatar
0
https://code.sololearn.com/c9v4xTcFn2yj/?ref=app I couldn't figure out the rest and also what equation to put in "??" for the first half.
24th Mar 2020, 1:29 AM
Dipesh
Dipesh - avatar
0
Do you want them to print with number or only diamonds?
24th Mar 2020, 10:57 AM
Samavedam Praneeth
Samavedam Praneeth - avatar
0
Both as shown in example above
24th Mar 2020, 12:41 PM
Dipesh
Dipesh - avatar