My issue
error: invalid operands to binary %(have ‘float’ and ‘int’)
My code
//We have populated the solutions for the 10 easiest problems for your support.
//Click on the SUBMIT button to make a submission to this problem.
#include<stdio.h>
int main(){
float X,Y;
scanf("%f %f",&X,&Y);
if(X%5==0)
{
int withdrawl=X+0.50;
if(withdrawl<=Y)
printf("%d",Y-withdrawl);
else
printf("%d",Y);
}
else
printf("%d",Y);
}
Problem Link: HS08TEST Problem - CodeChef