Created
February 10, 2014 18:52
-
-
Save MattSA/8921872 to your computer and use it in GitHub Desktop.
This file contains 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> | |
// prompt user for change requirement | |
float main (void) | |
{ | |
float change; | |
printf("How much change do you want? \n"); | |
change = GetFloat(); | |
while (change < 0) | |
{ | |
printf("Try again \n"); | |
printf("How much change do you want? "); | |
change = GetFloat(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment