import java.util.*;
public class u2p4
{
public static void main(String args[])
{
int arr[]=new int[5];
Scanner sc=new Scanner(System.in);
System.out.println("Enter a 5 values");
for(int i=0;i<5;i++)
{
arr[i]=sc.nextInt();
}
for(int i=4;i>=0;i--)
{
System.out.println(arr[i]);
}
}
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.