New course! Every coder should learn Generative AI!
Try a free lesson0
If I want only the final answer what should I do?? Because I don't care what is the answer between the series.
2 Answers
+ 1
They you should obviously put the System.out.println outside for loop
0
Thanks Abhay..