Hi, I'm new in C, and I'm stuck in my C project. Here is a Staff Salary checking, I don't know how to check the input value is valid, like entering 'nothing' or characters which is not numbers.
I know how to check value for characters, but really don't know which function can be used for float.Code:{
float salary;
printf("Salary : ");
scanf("%f",&salary);
... how to check ...
}
Please advise, thanks!
