Doubt in first solved ex

how could we know whether the number obtained is float or integer , the user can enter even in decimals