Skip to content

Commit eb8d7df

Browse files
author
Jasti9
committed
add
1 parent 97f2635 commit eb8d7df

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Array/Array2da.java

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
class Array2da
2+
{
3+
4+
void display()
5+
{
6+
int a[][]={{40,50,60,70,80},{100,110,120,130,140}};
7+
int b[][]={{100,200,300,400,500},{1000,2000,3000,4000,5000}};
8+
9+
int c[][]=new int[2][5];
10+
11+
for(int i=0;i<2;i++)
12+
{
13+
for(int j=0;j<5;j++)
14+
{
15+
c[i][j]=a[i][j]+b[i][j];
16+
System.out.println(c[i][j]);
17+
}
18+
}
19+
}
20+
21+
public static void main(String[]args)
22+
{
23+
Array2da a=new Array2da();
24+
a.display();
25+
}
26+
}
27+

0 commit comments

Comments
 (0)