atm problem need help

#include <stdio.h>
#include <stdlib.h>

#ifndef BANK_CHARGE
#define BANK_CHARGE  0.5
#endif;

int main (int argc, char **argv){
// if(argc != 3){
//   printf("Usage: %s [int] [float]

", argv[0]);
// exit(1);
// }

int withdraw = atoi(argv[1]);
float balance = atof(argv[2]);

if((withdraw % 5) != 0){
printf("%.2f", balance);
exit(1);
}
if(withdraw > 2000 || withdraw == 0){
printf("%.2f", balance);
exit(1);
}

float totalWithdraw = (withdraw + BANK_CHARGE);

if(totalWithdraw >= balance){
printf("%.2f", balance);
exit(1);
}

printf("%.2f", balance - totalWithdraw);
return 0;
}

this is my code
and its showing runtime error

Hi @n1a24. The arguments to your code should be taken by using scanf and they are not given as argumments to main function as you have taken. Just change your main to int main() and take input as scanf("%d %f",withdraw, balance);