Error

Oct 29, 2015 at 2:14pm
Hey guys, need some help with code.

Have to print "error" if user inputs float/double number instead of int.

example:

if users inputs 5 its ok,
but if inputs 5.5 programm prints out "Error"

How can i do that?

Thanks for help.
Oct 29, 2015 at 3:52pm
What have you tried? Show us some code that illustrates the problem and ask specific questions based on that code.
Topic archived. No new replies allowed.