Discuss / Java / 打卡

打卡

Topic source

Fwmmmm-

#1 Created at ... [Delete] [Delete and Lock User]
public class text {    public static void main(String[] args) {        int[] ns = { 1, 4, 9, 16, 25 };        // 倒序打印数组元素:        for (int n=ns.length-1;n>=0;n--) {            System.out.println(ns[n]);        }    }}

  • 1

Reply