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 ?
Type: Posts; User: PaulGureghian1
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 ?
In integer division 6 / 5 = 1.2 with just the 1 being returned. <br><br>In modulo 6 % 5 = 1<br><br>On a calculator 6 % 5 = 1.2 <br><br>I was expecting...
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.
15830
15829
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'...
// 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