+ 4
Can someone please explain how does this program flows. Thank you very much 👍👍😊😊
import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner game = new Scanner(System.in); int num1 = game.nextInt(); for(int j=0; j<10; j++) { System.out.println(num1 + " x " + (j+1) + " = " + (num1 * (j+1))); } } }
6 Answers
+ 4
ah thank you 👊👊👍😁😁😇😇
+ 3
I have one more question sir where did the output stores?
+ 3
is it in the operation itself?
+ 3
Sololearn uses internet to connect and process the code , so it is the cloud storage .
+ 2
It prints the table of any number .
Initially you take an integer from the user and then in the loop you just start the counting from 0 to 9.
When printing the table you need to add 1 to the value of j as table doesn't start from 0 and end at 9 .
Its just similar to my most recent java code .
https://code.sololearn.com/caMTT9aomo81/?ref=app
+ 2
System.out.println is what stores the output , and displays it .