0
I’m having trouble solving the following exercise:
Display the tabulated results of any number. The user informs what value he wants. The tabulation should be performed from 0 to 10, using the loop loop technique with logic test at the end of the looping.
I can only use : DO and WHILE..
For now my code in ECLIPSE is like this:
import java.io.IOException;
import java.util.Scanner;
public class Tabuada {
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
int A;
Scanner tab = new Scanner(System.in);
System.out.println("Informar um número");
A = tab.nextInt();
}
}
Can you write the code with some kind of loop, for example with for? Because in your code there is nothing related to the solution attempt yet.
– prmottajr