Sir please check my code

You need to print the outputs in separate lines
Print a line(using endl || ā€˜\nā€™) after the completion of the for loop