-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExercises_two_dime.java
More file actions
34 lines (31 loc) · 1019 Bytes
/
Copy pathExercises_two_dime.java
File metadata and controls
34 lines (31 loc) · 1019 Bytes
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
package array;
import java.util.Scanner;
public class Exercises_two_dime {
public static void main(String[] args) {
Scanner objin = new Scanner(System.in);
int j,i;
int row,colum;
System.out.print("Input element Row :");
row = objin.nextInt();
System.out.print("Input element Colum :");
colum = objin.nextInt();
int arr[][] = new int [row][colum];
for(i=0;i< row;i++){
System.out.println("Input New row["+i+"]");
for(j=0;j<colum;j++){
System.out.print("Input Colum ["+j+"] :");
arr[i][j]=objin.nextInt();
}
System.out.println("");
}
for(i=0;i< row;i++){
System.out.println("Input New row["+i+"]");
for(j=0;j<colum;j++){
if(arr[i][j]%2==0){
System.out.println("Output Colum ["+j+"] :"+arr[i][j]);
}
}
System.out.println("");
}
}
}