public class CDM_P6 {
public static void main(String[] args) {
int[] value = {45, 56, 23, 78, 56, 78, 90};
System.out.println("Print array in reverse order:");
for (int i = value.length - 1; i >= 0; i--) {
System.out.println(value[i]);
}
}
}
//output
Print array in reverse order: 90 78 56 78 23 56 45 Process finished with exit code 0

0 Comments