can we print that n*n pattern using just println rather than using 2 different lines of print. i.e first we print the star pattern then in row loop we r using println() cant we directly use println while printing the star
Pattern1 doubt regarding println
Hey @anshitaverma1307_28cf7d0098a14263 No we cannot use printlm bcoz println will change line to new line causing wrong pattern.
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.