brrq.net
当前位置:首页 >> 怎么用JAVA语言写一个程序"输入一个0到100的表示分... >>

怎么用JAVA语言写一个程序"输入一个0到100的表示分...

你这个问题描述的,我都看不懂你在说什么

代码如下: public class Math{ public static void main (Stting args[]){ int i=0; int m=0; while (i

import java.util.Scanner;public class GetGrade {public static void main(String[] args) {System.out.println("请输入成绩(1-100)");Scanner sc = new Scanner(System.in);int score = sc.nextInt();if (score < 0 || score > 100) {System....

public class TestSu { public static void main(String[] args) { int j; for (int i = 2; i

System.out.println("1-100间所有奇数:"); for(int i=0;i

代码如下.希望有所帮助 public static void prime() { int count = 1; for (int i = 2; i = i) { System.err.print(i + "\t"); if (count % 5 == 0) { System.err.println(); } count++; } } }

class TTTT{ public static void main(String []args)throws IOException{ long sum = 0; for (int i = 1; i

import java.util.Scanner; /** * * @author Administrator */ public class TestSwitch { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here Scanner scanner =...

int level; // 成绩等级botton = int.Parse(Console.ReadLine());if(botton=80) level=1; //80分以上优秀else level=2; // 60-80分为及格switch (level){ case 1: Console.Write("这枚同学成绩优秀!"); break; case 2: Console.Write("这枚同学...

public class Tes1 extends Thread{public final String flag;public Tes1(String flag) {super();this.flag = flag;}public static void main(String[] args) {Tes1 t1 = new Tes1("char");Tes1 t2 = new Tes1("number");t2.start();t1.start()...

网站首页 | 网站地图
All rights reserved Powered by www.brrq.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com