write down a program which generates numbers from 1 to 10 but in following format in C++
1 2
3 4
5 6
7 8
9 10

Given the rather lax requirements this could be done in a single cout statement. Was there more to this assignment?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.