+ 3
How to draw a pattern like 👇 this using java or c
******* ********* ************ ***************** // sleeping mountain! ************* *********** ********
2 Respostas
+ 15
1)let input be n(lets say odd)
2)for (n+1)/2 rows , starting from n stars (*****...n) , then increasing n stars by 2,3,4
3)for n/2 rows , starting from n+2*((n+1)/2) stars(or get the no. of stars in last rows of loop in 1)) , then decreasing thise stars by 4,3,2in each row
0
Use a for loop instead as in c