Computer Science, asked by emiral8302, 8 months ago

What is wrong with the following code?

num1 = int (input("Enter a number: "))
num2 = int (input("Enter a number: "))
num3 = int (input("Enter a number: "))
print ("The average is: " + (num1 + num2 + num3)/3)

Answers

Answered by asmitapatra201
0

Answer:

you do not need to put input there. Enter a number is enough for taking the value and storing it in the variables.

You have to write System.out.println instead of print

~~~~~~ In case it is a java program ~~~~~~

Similar questions