New course! Every coder should learn Generative AI!
Try a free lesson0
How can i print "1." to "9." each on new line
1. 2. 3.
1 Answer
+ 2
Please describe language, otherwise here's a common solution: use any loop and put \n at the starting/end.
For example
for (int I=1; I<=9; I++)
printf ("%d\n",I);