in reply to Re^2: how to make perl only print whole numbers
in thread how to make perl only print whole numbers
Every number includes 1.5, and 1.5 / 1 does not give an integer result.
The OP code even allows you to enter such numbers, since the input has no validation at all.
|
|---|