Skip to content

Instantly share code, notes, and snippets.

@Edmundworks
Created March 8, 2019 03:40
Show Gist options
  • Save Edmundworks/ce795be9d395104fbebe69e110cded06 to your computer and use it in GitHub Desktop.
Save Edmundworks/ce795be9d395104fbebe69e110cded06 to your computer and use it in GitHub Desktop.
#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