how to assigned comma and period in thousand number?? (ex. 1,000.50) in c++..
this is my sample code...
#include <iostream>
main ()
{
int x=0,y;
cout<<"Coverting Dollar to Philippine Currency:";
cout<<"\n\nEnter amount of dollar: $ ";
cin>>y;
x = y * 45.00;
cout<<"Php "<<x;
return 0;
}
i want to assigned comma in thousand number and period of decimal.
ex. Php 1,000.50