-
Notifications
You must be signed in to change notification settings - Fork 0
/
Demo14.java
32 lines (31 loc) · 972 Bytes
/
Demo14.java
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
import java.util.Scanner;
public class Demo14
{
public static void main(String []args)
{
Scanner scan=new Scanner(System.in);
int arr[][][]=new int[3][2][4];
for (int i=0;i<=arr.length-1;i++) {
for (int j = 0; j <= arr[i].length - 1; j++)
{
for (int k=0;k<=arr[i][j].length-1;k++)
{
System.out.println("enter the amount of bank"+i+"branch"+j+"customer"+k);
arr[i][j][k]=scan.nextInt();
}
}
}
System.out.println("array contents are");
for (int i=0;i<=arr.length-1;i++)
{
for (int j=0;j<=arr[i].length-1;j++)
{
for (int k=0;k<=arr[i][j].length-1;k++)
{
System.out.print(arr[i][j][k]+" ");
}
System.out.println();
}
}
}
}