Computer Science, asked by ishikaswain61, 6 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 kripajohn
1

Answer:

ooooooooooooooooooooooooooooooooo

Answered by SASHANKSAHIL
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