package com.hanyi;
import java.util.Scanner;
public class disizhang1 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("输入5句话:");
String t = "0";
String a[] = new String[5];
for (int i = 1; i <= a.length; i++) {
System.out.println("第"+i+"句话:");
String r = input.next();
a[i-1]=r;
}
System.out.println("逆序输出5句话:");
for (int c = 0; c <a.length/2 ; c++) {
t=a[c];
a[c]=a[a.length-1-c];
a[a.length-1-c]=t;
}
for(String x:a){
System.out.println(x);
}
}
}