You are on page 1of 2

Practical 13.

import java.util.*;

class singleArray{

public static void main(String args[]){

Scanner sc = new Scanner(System.in);

int arr[]=new int[5];

System.out.println("Enter the elements of array:");

for(int i=0;i<5;i++){

arr[i]=sc.nextInt();

System.out.println("Enter of array are:");

for(int j=0;j<5;j++){

System.out.println(" "+arr[j]);

output

Enter the elements of array are:

12345

2433

321

43

4435

Enter of array are:


12345

2433

321

43

4435

You might also like