I don't know how to end the elements of the following array with a period instead of a comma.
1 2 3 4 5 6
for(int i = 0; i < num_elements; i++)
{
array_intergers[i] *= x;
cout<<array_intergers[i]<<","; //obviously this array ends with a comma i need a period.
}
ah..
for(int i = 0; i < num_elements; i++)
{
array_intergers[i] *= x;
if(i==num_elements-1)
{cout<<array_intergers[i]<<".";}
else
{cout<<array_intergers[i]<<","; }//obviously this array ends with a comma i need a period.
}