-1
ex 2 4 The program has to do two tabs of 3 and four in Portugol
/*mostra toda a tabuada entre dois numeros digitados
name will
data 22/04/2019*/
programa
{
funcao inicio()
{
inteiro n1,n2,aux,contador=0,total
escreva("Informe o primeiro numero")
leia(n1)
escreva("Informe o segundo numero")
leia(n2)
se(n2<n1){
aux=n2
n2=n1
n1=aux
}
enquanto(n2>=n1){
enquanto ( contador<= 10 ) {
total=n1*contador
escreva(n1,"x",contador,"=",total,"\n")
contador=contador+1
}
}
}
}
What you’ve tried to do?
– Marccus Zavadzki
I suggest you explain your difficulty, how far you have come, etc. Otherwise it will seem that you just want someone to do your homework.
– Ronaldo Araújo Alves
I already reformulated the question and put what I have already done I have managed to make it show the table but not of all numbers between the first number I typed and the second
– will
it only makes the first multiplication of the first number in case n1 and ignores N2
– will
It hangs when it arrives at the part while counting < =10 it considers that I finish but is missing the other tables and I am not able to solve
– will