sir, when I run this code in vs code it gives correct answer but when I summit this code only one test case is right rest are wrong. why is it so ?
Double sided arrow
Hey @sb8031151_af528e7b895c738c You just need to add spaces where you have printed var and also where you have given only single space like :
System.out.print(var+" “);
and
System.out.print(” ");// two spaces are given
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.