Task 4 of 8 · 0 solved · 8 to go0%
You can read the problem, but answers are checked only for signed-in students. Sign in to answer →

1.3 Types — to double

Total: 0 / 3 pts
Practice mode — check each part and get hints as you go.
Task

Store the whole number 7 in an int variable, then turn it into a double and print it — so a whole number comes out with a decimal point.

The program prints 7.0.

Your solution