I know how to validate input, but how can I check if
is an integer and not a float?Code:int ans = num1 / num2; // all integers
I know how to validate input, but how can I check if
is an integer and not a float?Code:int ans = num1 / num2; // all integers
Operating Systems:
- Ubuntu 9.04
- XP
Compiler: gcc