Browse Source

Add Cents.c

master
Chase Hall 1 month ago
parent
commit
92d8513cd8
1 changed files with 4 additions and 5 deletions
  1. +4
    -5
      Programs/Cents.c

+ 4
- 5
Programs/Cents.c View File

@ -8,13 +8,12 @@ int main(){
quarters = value / 25;
value = value % 25;
value %= 25;
dimes = value / 10;
value = value % 10;
value %= 10;
nickles = value / 5;
value = value % 5;
pennies = value / 1;
value = value % 1;
value %= 5;
pennies = value;
printf("%d Quarters\n", quarters);

Loading…
Cancel
Save