printf("Choose unit (wh, kwh, mwh):");
fflush(stdin);
fgets(unit,4,stdin);
For some reason I have seen this a few times: You probably want fflush(stdout), because the...
Type: Posts; User: Click_here
printf("Choose unit (wh, kwh, mwh):");
fflush(stdin);
fgets(unit,4,stdin);
For some reason I have seen this a few times: You probably want fflush(stdout), because the...