# Search:

Type: Posts; User: PaulGureghian1

1. ## Thread: Integer Division vs Modulo Operation

by PaulGureghian1
Replies
4
Views
362

### 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. ## Thread: Integer Division vs Modulo Operation

by PaulGureghian1
Replies
4
Views
362

### 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. ## Thread: Is the round() only executed in the loop ?

by PaulGureghian1
Replies
4
Views
327

### 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. ## Thread: Is the round() only executed in the loop ?

by PaulGureghian1
Replies
4
Views
327

15830

15829
5. ## Thread: Trying to figure out how the coin denominations are computed.

by PaulGureghian1
Replies
3
Views
432

### 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. ## Thread: Trying to figure out how the coin denominations are computed.

by PaulGureghian1
Replies
3
Views
432

### 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