-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMyArray.java
More file actions
35 lines (27 loc) · 789 Bytes
/
MyArray.java
File metadata and controls
35 lines (27 loc) · 789 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
35
import java.util.*;
public class MyArray{
public static void main(String suraj[]){
int arr[]=new int[10];
Scanner sc=new Scanner(System.in);
for(int i=0;i<10;i++){
arr[i]=sc.nextInt();
}
for(int i=0;i<10;i++){
System.out.print(arr[i]+" ");
}
int array[][]=new int[3][3];
array[0][1]=200;
for(int i=0;i<3;i++){
for(int j=0;j<3;j++){
array[i][j]=sc.nextInt();
}
System.out.println();
}
for(int i=0;i<3;i++){
for(int j=0;j<3;j++){
System.out.print(array[i][j]+" ");
}
System.out.println();
}
}
}