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) The variables should be 1num, 2num, 3num It needs a str() command It needs a int() command The last line should be print ("The average is: (num1 + num2 + num/3 ))

Answers

Answered by singhvinod4895
2

Answer:

What is wrong with: num1 = int ( input("Enter a number: ")) num2 = int ... number: ")) print ("The average is: " + (num1 + num2 + num3)/3) ... Answer: "+" Sign in your code should be "," comma.

Answered by patelom2003
0

Answer:

mark me brainlest

Explanation:

What is wrong with: num1 = int ( input("Enter a number: ")) num2 = int ... number: ")) print ("The average is: " + (num1 + num2 + num3)/3) ... Answer: "+" Sign in your code should be "," comma.

Similar questions