Site icon T4Tutorials.com

Write a program that display the following output using single cout

Write a program that display the following output using single cout

1          2          3          4          5

6          7          8          9          10

#include <iostream>
using namespace std;
int main() {
    cout << "1\t2\t3\t4\t5\n6\t7\t8\t9\t10\n";
    return 0;
}

Output

1    2    3    4    5
6    7    8    9   10

Exit mobile version