Write a program to calculate sum of three numbers. in python
Answers
Answered by
36
Answer:
def sum_thrice(x, y, z):
sum = x + y + z
if x == y == z:
sum = sum * 3
return sum
x = int(input("1 Number: "))
y = int(input("2 Number: "))
z = int(input("3 Number: "))
Explanation:
I give you answer now it is your duty to mark me as a brianliest please follow me on brainly thanks my 10 answers to
Answered by
5
Answer:
def sum_num(a,b,c):
sum = a + b + c
if (a==b==c):
sum=(sum*3)
return sum
print(sum_num(12,14,14))
print(sum_num(12,12,12))
Explanation:
40
108
Similar questions
Social Sciences,
3 months ago
Geography,
3 months ago
Math,
7 months ago
India Languages,
7 months ago
India Languages,
11 months ago