Help me in ATM beginners section

#include <stdio.h>

int main(void) {
	int x;
	float y;
	scanf("%d %f",&x,&y);
		if (x>y||x%5!=0)
	else if (x+0.5<=y)
	return 0;

cant really figure out what I’m doing wrong please help

Hi @negativ3,

  1. You are not considering the two-digit precision part into account.
  2. Not considering the charges during the case of failed transactions. Like for input 120 120.10 your code is printing nothing.

Here is the corrected code: .
Hope this helps!