- Diamonds This Task Is To Create An Diamond Of Stars By Having The User Input A Positive Number Which Corresponds To The 1 (39.55 KiB) Viewed 32 times
Diamonds This task is to create an diamond of stars by having the user input a positive number which corresponds to the
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Diamonds This task is to create an diamond of stars by having the user input a positive number which corresponds to the
Diamonds This task is to create an diamond of stars by having the user input a positive number which corresponds to the height till the middle of the diamond. In this task the user will be able to create new diamonds until a negative number is entered and you should also check for validity of the input. This task should be completed without using String Builder to create strings, but rather by printing stars directly. Call the program Diamonds.java and see an example execution below: Give a positive number: 5 *** *** F+十十十 ******** ***** ***** ** * Give a positive number: 3 * Give a positive number: -3