This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Reverse{ | |
public static void main(String[] args) { | |
Scanner input = new Scanner(System.in); | |
// System.out.println("Enter the size of the array"); | |
int n = input.nextInt(); | |
int[] arr = new int[n]; | |
// System.out.println("Enter array values"); | |
for(int i=0; i<n; i++){ |
NewerOlder