Search:

Type: Posts; User: PaulGureghian1

Search: Search took 0.01 seconds.

  1. Thanks for the reply. as you saw, my post was...

    Thanks for the reply. as you saw, my post was kinda unreadable. what tags do I add and how do I add them to make it more readable ?
  2. Integer Division vs Modulo Operation

    In integer division&nbsp; 6 / 5 = 1.2&nbsp; with just the 1 being returned.&nbsp;<br><br>In modulo 6 % 5 = 1<br><br>On a calculator&nbsp; 6 % 5&nbsp; =&nbsp; 1.2&nbsp; &nbsp;<br><br>I was expecting...
  3. Quarters evaluates to 1. but, 41 / 25 = 1.6 ...

    Quarters evaluates to 1. but, 41 / 25 = 1.6

    Is it being rounded down to 1 ? seems to me that the round() only executes in the loop.
  4. Is the round() only executed in the loop ?

    15830

    15829
  5. How is 'quarters' computed ? I think it is : 41...

    How is 'quarters' computed ? I think it is : 41 / 25 = 1.64
    How is 'dimes' computed ? Is it 'coins_due' % 25 then that value / 10 , or coins_due % 25 then coins due / 5 ?
    How is 'nickels'...
  6. Trying to figure out how the coin denominations are computed.

    // Import libraries
    #include <stdio.h>
    #include <math.h>
    #include <cs50.h>

    int main()
    {
    // Define an int type variable
    int coins_due;
    // Create a 'do while' loop
Results 1 to 6 of 6