2
How do I create a variable and add the type as integer, but without having any value set? I need this variable to do this:
a = int(input())
b = int(input())
x = int # tentei colocar o tipo da variável como inteira dessa forma, mas dá erro.
if a * x == b: # a variável x precisa ser um número qualquer e inteiro para que funcione com o "if".
print(f'O MMC entre {a} e {b} é {a}.')
See the question Program to find MMC in Python. If your question is like this and you solved in the way you commented, with split remainder by 2, simply nothing made sense and so I voted to close the question as unclear.
– Woss
Lucas would be this https://answall.com/a/263153/3635 what you need?
– Guilherme Nascimento
Did the answer resolve what was in doubt? Do you need something else to be improved? Do you think it is possible to accept it now?
– Maniero