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