Computer Science, asked by lokeshsingh61, 7 months ago

The following code is not giving desired output. We want to

input value as 10 and obtain output as 20(10+10). Identify the

error in the below code and Re-write the code underlining each

correction.

number=input(“Enter Number”)

changenum=number+10

print(changenum)​

Answers

Answered by SASHANKSAHIL
5

Answer:

Error in input:

Line1: number=input(“Enter Number”)

Here int is missing

Line2: changenum=number+10

No error

Line3: print(changenum)

No error

Corrected input:

number=int(input("Enter Number:"))

#or you can write

#number=10

#because you know the input

changenum=number+10

print(changenum)

Output:

20

[Program Finished]

Hope you may get it

Mark as brainliest

Thank You...

Similar questions