Home > Back-end > Java jiujiu multiplication tables for help
Java jiujiu multiplication tables for help
Time:10-19
Just learning Java does not understand, how to implement the input multiple sets of test data,, every brother please help
Subject requirements, in the pictures, thank you,
CodePudding user response:
If you want to enter n sets of data, you can use a two-dimensional array n rows 3 columns to store test data is not to go, you input the for loop always
CodePudding user response:
I also is new this question is what I can't understand you, but let me write a jiujiu multiplication tables or broadly to For (int x=1; x<=9; X++) { For (int y=1; Y<=x; Y++) { System. The out. Print (" * "+ x + y +"="+ x * y +" \ t "); } System.out.println(); }