there is a cross pattern question in practice problem of patterns.
how to decide the position of star in cross pattern
Doubt in cross pattern
@harsh.hj,
For the cross pattern you need to keep 2 space variables. One space variable for the spaces before the star. The second space variable for spaces between the 2 stars. Print stars after the execution of first space variable. And print stars after the execution of second space variable.
For the second half of the cross, invert the approach.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.