draw in console a moon with * | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

draw in console a moon with *

I have to do the code to draw in console mode a moon with *. It has an N diameter

2nd Nov 2020, 7:17 PM
Adriana Garcia
Adriana Garcia - avatar
1 Answer
+ 4
Make your attempt on the code playground and share it here with us, so that we can help you. The idea is a double for() loop. The inner prints a row of characters and the outer just launches the inner N times.
2nd Nov 2020, 8:10 PM
Davide
Davide - avatar