//convert cents to dollars and cents//
I am trying to print the result with two decimal places but it is not working.
I get a result of 1234.6 but i want 1234.06 the 0 does not print
#define cents_per_dollars 100 //cents in dollars//
int main (void)
long d, c;
cout<<setprecision(2)<<"123406 cents= "<<"$"<<d<<"."<<c<<"\n";