Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

jump to level 1 write four int(input()) statements to read four integer…

Question

jump to level 1
write four int(input()) statements to read four integers from input into variables side1, side2, side3, and side4, respectively.
then, write one print() statement to output the sum of the four integers.

Explanation:

Step1: Read first integer

side1 = int(input())

Step2: Read second integer

side2 = int(input())

Step3: Read third integer

side3 = int(input())

Step4: Read fourth integer

side4 = int(input())

Step5: Calculate & print sum

print(side1 + side2 + side3 + side4)

Answer:

side1 = int(input())
side2 = int(input())
side3 = int(input())
side4 = int(input())
print(side1 + side2 + side3 + side4)