0
I already program in c, I’m mdc in Python but I’m struggling with indentation, because in c we don’t care about it, someone could help me, my code below
numero = int(input())
for i in range():
x = int(input())
n = int(input())
int resto = x % n
while(resto!=0)
x = n
n = resto
resto = x % n
print(n2)
Friend has several things wrong with your code before identation, do not need to declare the type of variable
int
on the fifth line, there is no:
no whilewhile(condicao):
and there is also no variablen2
. At first glance, it seems to be the errors you have. Identation advise to use tab.– lazyFox