1.

Complete the task and i will give your answer as brainliest if spam then i'll report you

Answer»

Program:

def find_product(num1,num2,num3):

  product=0

  if(num1==7):

      if(num2==7):

          if(num3==7):

              product = -1

          else:

              product = num3

      else:

          if(num3==7):

              product = -1

          else:

              product = num2*num3

  else:

      if(num2==7):

          if(num3==7):

              product = -1

          else:

              product = num3

      else:

          if(num3==7):

              product = -1

          else:

              product = num1*num2*num3    

  return product

a = int(INPUT("Enter 1ST number"))

b = int(input("Enter 2nd number"))

c = int(input("Enter 3rd number"))

product=find_product(a,b,c)

print(product)

Output:

Enter 1st number7

Enter 2nd number6

Enter 3rd number2

12

-----HOPE this HELPS :)



Discussion

No Comment Found