1: #include <iostream>
2: using namespace std;
3: 
4: int main()
5: {  int pennies = 8;
6:    int dimes = 4;
7:    int quarters = 3;
8: 
9:    double total = pennies * 0.01 + dimes * 0.10 + quarters * 0.25;
10:                 /* total value of the coins */
11: 
12:   cout << "Total value = " << total << "\n";
13: 
14:   return 0;
15: }