Created
March 8, 2019 03:40
-
-
Save Edmundworks/ce795be9d395104fbebe69e110cded06 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cs50.h> | |
#include <stdio.h> | |
#include <math.h> | |
int main(void) | |
{ | |
int change = get_int("change owed: "); | |
int quarter_count = 0; | |
quarter_count = ((change - (change % 25)) / 25); | |
nikel_count = (10 % (change % 25) / 10); | |
printf("%i quarters\n", quarter_count); | |
printf("%i nikels\n", ) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment