I want to output some numbers, all separated with a comma. In the following code also the last number will be "separated":
for(int i=1; i<=3; i++)
{
cout << i << ",";
}
Is it possible to avoid that?
So instead of 1,2,3,
I want just 1,2,3