Computer Science, asked by ishandragonballz, 7 months ago

Write a program to calculate sum of three numbers. in python​

Answers

Answered by rajrsharma2007
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 htripathi141
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