#include <stdio.h>

#include <cs50.h>

#include <math.h>

int main ( void )

{

int quarter = 25 ;

int dime = 10 ;

int nickel = 5 ;

int penny = 1 ;

printf ( "Ello, please give me the change owed: " ) ;

float change = GetFloat ( ) ;

while ( change < 0 )

{

printf ( "You must enter a positive value

" ) ;

printf ( "Please give me a positive value: " ) ;

change = GetFloat ( ) ;

}

int cents = round ( change * 100 ) ;

int count = 0 ;

while ( cents >= quarter )

{

int cents = ( cents - quarter ) ;

count ++;

}

while ( cents >= dime )

{

int cents = ( cents - dime ) ;

count ++;

}

while ( cents >= nickel )

{

int cents = ( cents - nickel ) ;

count ++;

}

while ( cents >= penny )

{

int cents = ( cents - penny ) ;

count ++;

}

printf ( "The number of coins is %d" , count ) ;

return 0 ;