Im stuck on the cash problem. Feeling my brain is starting to synthesise with a lot more information. I get nervous when I start a problem out on my own. Nervous for typing on a keyboard in private. It’s the inner voice saying “you’ll never get this, you’ll never understand”.
Anyhow, Here I am in the problem:
#include <cs50.h> #include <stdio.h> #include <math.h> int main (void) { float input; int change; int noCoins; //Prompt user for an amount of change do { input = get_float("How much change: "); } while (input < 0); double cents = round(input * 100); printf("%0.2f\n", cents); //Always use the largest coin possible noCoins = 0; //Keep track of coins used change = input; printf("%i\n", change); //Print final number of coins }