0
Good evening, Colleagues!
I have this problem and I cannot find a solution even in the IDE documentation. I’d like to know which command to use to pick up the leftover division to use it in the instructions below it. I know basically that the command is MOD OR % just don’t know how to use it within the formula.
var
N,N2,N3,N4,N5,N6,N7: INTEGER
beginning
Leia(N)
N2 <- N/100 % 100
Escreval (N2)
Escreval //Quero usar a sobra da divisão aqui em baixo para outra conta, imaginando que o valor da variável N1 é 576
fimalgoritmo
N2 <- N % 100 will assign to the N2 variable the rest of the division of N by 100. What you did is not much sense.
– anonimo
So thinking a lot here, it was meaningless! But I managed to put in the answer
– Sidney Oliveira