|
@@ -0,0 +1,20 @@
|
|
|
|
+package trade;
|
|
|
|
+
|
|
|
|
+public class demo {
|
|
|
|
+ public static void main(String[] args) {
|
|
|
|
+ int sum = 0;
|
|
|
|
+ int k = 0;
|
|
|
|
+ System.out.println("Hello, Breakpoint!");
|
|
|
|
+ while (sum < 45000) {
|
|
|
|
+ k++;
|
|
|
|
+ for (int i = 0; i < 100; i++) {
|
|
|
|
+ sum = sum + i;
|
|
|
|
+ System.out.println("i = " + i);
|
|
|
|
+ System.out.println("sum = " + sum);
|
|
|
|
+ }
|
|
|
|
+ System.out.println("k = " + k);
|
|
|
|
+ System.out.println("sum = " + sum);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+}
|