-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.java
More file actions
52 lines (39 loc) · 1.34 KB
/
Copy pathmain.java
File metadata and controls
52 lines (39 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package testbatch8;
import java.util.Scanner;
/**
*
* @author Administrator
*/
public class main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
System.out.println("************ Welcome to SidLabs *****************\n\n");
int row, col, i, j;
int var[][] = new int[10][10];
System.out.println("\nEnter the size of Rows : ");
Scanner scn = new Scanner(System.in);
row = scn.nextInt();
System.out.println("\nEnter the size of Columns : ");
col = scn.nextInt();
System.out.println("Enter "+row*col+" number of list items");
for (i=0; i<row; i++){
for (j=0; j<col; j++){
var[i][j] = scn.nextInt();
}
}
System.out.println("\n Your list of items are ,");
for (i=0; i<row; i++){
for (j=0; j<col; j++){
System.out.print(var[i][j]+"\t");
}
System.out.println("");
}
}
}