how to check input is float or interger in c code example
Example: check if float is integer c
float f = 4.5886;
if (f == (int)f)
printf("yes\n");
else printf("no\n");
float f = 4.5886;
if (f == (int)f)
printf("yes\n");
else printf("no\n");