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:
ooooooooooooooooooooooooooooooooo
Answered by
2
Answer:
Question's input:
num = input("enter any number")
double_num = num * 2
Print("Double of",num,"is",double_num)
Error in question's input:
Line1 : the numbers to be taken in int form not in string form
Line2: No error
Line3: print 'p' should be small not capital
Correct input:
num = int(input("Enter any number:"))
double_num = num * 2
print("Double of",num,"is",double_num)
Hope you may get it
Mark as brainliest
Thank You...
Similar questions
Science,
3 months ago
Social Sciences,
3 months ago
English,
3 months ago
Social Sciences,
6 months ago
English,
6 months ago
Chemistry,
11 months ago
Math,
11 months ago