175k views
3 votes
What is output by the following algorithm if the user enters 3, 8 and 10?

print("Please enter values for a, b and c")
int(input())
int(input())
C = int(input())
a
b =
=
x = a* b + c
y = (b + c) / a
z = x DIV y
w = x MOD y
x = x + y
print(x)
print(y)
print(z)
print (w)

User Evpo
by
8.1k points

1 Answer

6 votes

Its to long to explain but its

40

6

5

4

User Wahid Shalaly
by
7.7k points