#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int strcmp(const char *s1, const char *s2);
void overdue();
int main(){
overdue();
}
void overdue(){
int x,overdue_fees;
char answ[10];
char yes [10] = "yes";
char no[10] = "no";
int ret = strcmp(yes, no);
system ("cls");
printf("\n <<<<<<<<<<<<<<<<<<<<<<<<**********OVERDUE ITEMS*********<<<<<<<<<<<<<<<<<<<<<<<<<< \n");
printf("\n");
printf("PLEASE ENTER BARCODE OF OVERDUE ITEM:\n ignore me!\n");
//search for barcode in active book loans and info on that loan
printf("Is it past the return date?\n");
fgets(answ,10,stdin);
printf(answ);
getchar();
if (strcmpi(answ,yes)==0){
printf("By how many days?");
getchar();
scanf("%d",&x);
getchar();
while (x!=0){
overdue_fees=1*1;
printf("%d $",overdue_fees);
x++;
}
}
}
WHAT AM I DOING WRONG? IT KEEPS CUTTING OFF ATFER I ENTER YES AS THE STRING TO BE STORED IN ANSW. I'M NEW HERE SO IF I'M NOT FOLLOWING PROTOCOL PLEASE EXCUSE ME BUT I NEED HELP NOW!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!