+ 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))); } } }

12th Sep 2017, 9:58 AM
jomar ibarra
jomar ibarra - avatar
6 Respuestas
+ 4
ah thank you 👊👊👍😁😁😇😇
12th Sep 2017, 10:56 AM
jomar ibarra
jomar ibarra - avatar
+ 3
I have one more question sir where did the output stores?
12th Sep 2017, 10:52 AM
jomar ibarra
jomar ibarra - avatar
+ 3
is it in the operation itself?
12th Sep 2017, 10:53 AM
jomar ibarra
jomar ibarra - avatar
+ 3
Sololearn uses internet to connect and process the code , so it is the cloud storage .
12th Sep 2017, 10:55 AM
RZK 022
RZK 022 - avatar
+ 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
12th Sep 2017, 10:36 AM
RZK 022
RZK 022 - avatar
+ 2
System.out.println is what stores the output , and displays it .
12th Sep 2017, 10:53 AM
RZK 022
RZK 022 - avatar