title: Input amount of coins and output amount in dollars & cents
body: <p>I am wondering why my code isn't displaying the amount in cents and only displaying the amount in dollars. Anyone see where I am going wrong? </p>
  
  <pre><code>int dollars;
  int change;
  int quarters;
  int dimes;
  int nickels;
  int pennies;
  
  cout &lt;&lt; "Enter amount of quaters" &lt;&lt; endl;
  cin &gt;&gt; quarters;
  
  cout &lt;&lt; "Enter amount of dimes" &lt;&lt; endl;
  cin &gt;&gt; dimes;
  
  cout &lt;&lt; "Enter amount of nickels" &lt;&lt; endl;
  cin &gt;&gt; nickels;
  
  cout &lt;&lt; "Enter amount of pennies" &lt;&lt; endl;
  cin &gt;&gt; pennies;
  
  quarters = quarters * 0.25;
  dimes = dimes * 0.10;
  nickels = nickels * 0.05;
  pennies = pennies * 0.01;
  
  dollars = quarters + dimes + nickels + pennies;
  change = dollars % quarters + dimes + nickels + pennies;
  
  cout &lt;&lt; "You have " &lt;&lt; dollars &lt;&lt; " dollar(s)" &lt;&lt; endl;
  cout &lt;&lt; "You have " &lt;&lt; change &lt;&lt; " cents" &lt;&lt; endl;
  
  return 0;
  </code></pre>
  
  <p>}</p>