#include <iostream>
usingnamespace std;
int main ()
{
int n = 0;
int m = 1;
for (int i = 0; i < 5; i++ )
{
for (int e = 0; e < 5; e++ )
{
cout << m << "." << ++n << ", ";
}
n = 0;
m = m + 1;
cout << endl;
}
}
.
I want it to show the numbers in a way that the next number should not be equal or bigger than the one before.
in other words, the output should be:
1.2, 1.3, 1.4, 1.5
2.3, 2.4, 2.5
3.4, 3.5
4.5
I hope someone helps me. I did not do programming for a long time. I want to come back.