I am trying to write a program for my online Java programming class. It is requiring me to write a program that displays a diamond using asterisks. I can get the nested for statements to display the number of asterisks correctly but I cannot manage to figure out how to insert the spaces so that it looks like a diamond (i.e. the first one should be 5 spaces from the left). Help is greatly appreciated.
2007-02-21
05:12:14
·
5 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design