What is printed by the following code snippetSolutionAnswer
What is printed by the following code snippet?
Solution
Answer: 67.5
this code will print 67.5. Since we converted 45 value as int and 1.5 value as float both will multiply like 45 * 1.5 and result will be stored in num variable as float.
num = 45 * 1.5 = 67.5
num = 67.5
