input a whole number, output a decimal number
If the user inputs a value without decimal (example: 32, 12, 99,100), is there a way for the output to come out with a decimal point + 0?
ex:
input 32
Output 32.0
input 12
Output12.0
Voters
If the user inputs a value without decimal (example: 32, 12, 99,100), is there a way for the output to come out with a decimal point + 0?
ex:
input 32
Output 32.0
input 12
Output12.0
Hi :)
You can use
float()
Example [try it here] :