摘要: 打印的格式如下: 值:2,位于: 3,6,9 值:2,位于: 3,6,9 值:2,位于: 3,6,9 .................................... public static void main(String[] args) { int[] nums = {12, 18, 阅读全文
posted @ 2018-08-09 19:12 abdcef 阅读(189) 评论(0) 推荐(0) 编辑
摘要: package com.chuang; public class YangHui2 { public static void main(String[] args) { //二维数组存储杨辉三角形的数据 int[][] arr = new int[10][10]; for (int x = 0; x 阅读全文
posted @ 2018-08-09 17:31 abdcef 阅读(742) 评论(0) 推荐(0) 编辑