Q. Correct the following program so that it displays 33 when 30 is input.

 

val = input("Enter a value")

nval = val + 30

print (nval)

 

Answer =


val = int(input("Enter a value"))
nval = val + 3
print (nval)


1 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. In answer in second line it's val+3 correct it val+30

    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post