int sum = 0;int m = 1;int n = 100;// 使用do while计算M+...+N:do { sum+=m; m++;} while (m<=n);System.out.println(sum);
Sign in to make a reply
I WILL.