what is the problem with it Sir.
Only one testcases is going to be success.
Number & star pattern
Hey @sb8031151_af528e7b895c738c Only two changes are required in your code;
i) The place where you have written: System.out.print(cst1);
make it : System.out.print(cst1+" "); //Space added after cst1
ii) The place where you have written: System.out.print("");
Make it : System.out.print(" "); // Space added after star
Sir, whatever you have said I have done but it gives same error.
@sb8031151_af528e7b895c738cThere is no error bcoz after making mentioned changes the question is accepted with full marks.DONT COPY PASTE THE CODE FROM HERE BCOZ THE QUOTES"" HERE ARE CURVED BUT THE COMPILER ONLY USES STRAIGHTQUOTES SO TYPE YOUR CODE MANUALLY DONT COPY.
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.