File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11# Float
2- # Write a program that takes a number from the user
2+ # Write a program that takes a float from the user
33# and stores it in a variable. Cast the number to an
44# integer and store in another variable.
5- # Then print: (floating point number) = (integer).
5+ # Then print: (floating point number) = (integer number).
6+ # For example, if the user enters 5, the output would be:
7+ # 5.0 = 5
68# Also print the type of the floating point variable.
79# Remember! type(variable_name) will return the data type of a variable
810
Original file line number Diff line number Diff line change 11# Float
2- # Write a program that takes a number from the user
2+ # Write a program that takes a float from the user
33# and stores it in a variable. Cast the number to an
44# integer and store in another variable.
5- # Then print: (floating point number) = (integer).
5+ # Then print: (floating point number) = (integer number).
6+ # For example, if the user enters 5, the output would be:
7+ # 5.0 = 5
68# Also print the type of the floating point variable.
79# Remember! type(variable_name) will return the data type of a variable
810
You can’t perform that action at this time.
0 commit comments