2018年2月28日

1+2+...+n>=max问题的求解

摘要: package Hello; public class Demo1 { public static void main(String args[]) { long sum = 0, i = 1, N = 0, max = 1931918; while(true) { sum = sum + i; if(su... 阅读全文

posted @ 2018-02-28 14:59 letwant 阅读(127) 评论(0) 推荐(0) 编辑

java学习

摘要: 一、输入输出格式需要注意的事项: 1. Java区分大小写,主类名要与文件名一致。 2. float x = 12.4 是错误的,必须要强制转换或者改为 double x = 12.4; 阅读全文

posted @ 2018-02-28 14:52 letwant 阅读(101) 评论(0) 推荐(0) 编辑

导航