Row of Numbers

Number Output Program

Make a program that outputs numbers 1-10, one number per line.

Requested Output

1
2
3
4
5
6
7
8
9
10

answer

#include <iostream> 

int main()
{
	std::cout << "1\n2\n3\n4\n5\n6\n7\n8\n9\n10";
}

The character combination \n is treated like an "enter", or a "go to next line" command.

Questions