摘要:
final int max=1000; double item=0; double sum=0; int flag=-1; int n=0; for(n=0;n<=max;n++) { flag*=-1; item=f... 阅读全文
摘要:
package 月份输出; import java.util.*; public class 月份输出 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); ... 阅读全文
摘要:
package 钢材截断; public class 钢材截断 { public static void main(String[] args) { // TODO Auto-generated method stub int a = 2000; int i; for(i = 0; a >= 5 ; i... 阅读全文
摘要:
package 因子输出; import java.util.Scanner; public class 因子输出 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner in = new Scanner(System.in); ... 阅读全文
摘要:
package 质数的输出; import java.util.*; public class 质数的输出 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("请输入一个整数n:"); i... 阅读全文