TOPIC

Wrong answer (15%)

SilvaF asked 3 months ago

Olá!

Gostaria que me esclarecessem o que está faltando e/ou errado no código abaixo:

Dif = None
Prod_2 = None
Prod_1 = None
D = None
C = None
B = None
A = None

def read_integer():
  try:
    # read for Python 2.x
    return int(raw_input())
  except NameError:
    # read for Python 3.x
    return int(input())

A = read_integer()
B = read_integer()
C = read_integer()
D = read_integer()
Prod_1 = A * B
Prod_2 = C * D
Dif = Prod_1 - Prod_2
print(str("DIFERENÇA = ") + str(Dif))

Att.

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.