My code is below given can anyone help me out why second get char does not work. Below is my code
#include <stdio.h>
int main(char *c ;){
int accountBalance;
int cashDebited;
int cash;
int remain;
accountBalance=2000;
printf(“please enter the cash wanted to withdraw\n”);
cash=getchar();
if((cash % 5)>0){
printf(“please enter the cash you wanted to withdraw\n”);
cashDebited=getchar();
remain=accountBalance-cashDebited;
return remain;
}else{
printf(“insufficent balance\n”);
return cash % 5;
int main();
}return 0;
}