Like mentioned in the title, I get this "expected expression" error when I try to convert my amount from float into int type. Am I doing the conversion wrong ? Or is there something else I'm missing ?
Thank you !
#include <stdio.h>
#include <cs50.h>
#include <math.h>
int main(void)
{
float amount;
//ask user for input
do
{
amount = get_float("Please pay: ");
}
while(amount < 0);
//converting dollars to cents
amount = (amount * 100);
printf("%f", amount);
//how many 25c can I use
int remainder = int(amount % 25);
printf("%d", remainder);
}