The following code is not giving desired output.
We want to enter value as 100 and obtain output as 200.
Identify error and correct the program
num = input("enter any number") double_num = num * 2
Print("Double of",num,"is",double_num)
Answers
Answered by
1
Answer:
num = input("enter any number")
double_num = float(num) * 2
print("Double of "+ num +" is "+str(double_num))
Explanation:
Similar questions
Physics,
5 months ago
Math,
5 months ago
English,
5 months ago
Math,
11 months ago
English,
11 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago