摘要: 9. 求s=a+aa+aaa+aaaa+aa...a的值,其中a是一个数字。例如2+22+222+2222+22222(此时共有5个数相加),几个数相加有键盘控制。 1 public static int sumNum(){ 2 Scanner sc = new Scanner(System.in) 阅读全文
posted @ 2017-05-10 21:05 守明 阅读(124) 评论(0) 推荐(0) 编辑