0
package exercicio5;
import java.util.*;
public class Exercicio5 {
public static void main(String[] args) {
int i,n1,x;
Scanner ler;
ler = new Scanner(System.in);
for(i=1;i<=10;i++){
x=n1*i;
System.out.println("Digite o 1°número" +n1);
n1 = ler.nextInt();
System.out.println("Multiplicação de 1 até 10" +x);
}
}
}
Is making a mistake in: x=n1*i;
And what it should be
n1
in the first iteration? You only read its value after this line...– Woss
Did the answer solve your question? Do you think you can accept it? See [tour] if you don’t know how you do it. This would help a lot to indicate that the solution was useful for you. You can also vote on any question or answer you find useful on the entire site (when you have 15 points).
– Maniero