Computer Science, asked by btsarmyrockers, 11 months ago

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 akshayamca14
1

Answer:

num = input("enter any number")

double_num = float(num) * 2

print("Double of "+ num +" is "+str(double_num))

Explanation:

Similar questions