03 2020 档案

摘要:1. 分别使用for循环,while循环,do循环求1到100之间所有能被3整除的整数的和。 package hgj; public class dfg { public static void main(String[] args) { int i; int sum=0; for(i=1;i<10 阅读全文
posted @ 2020-03-30 13:25 天赐小白 阅读(81) 评论(0) 推荐(0)
摘要:1. 输入变量x的值,如果是1,输出x=1,如果是5,输出x=5,如果是 10,输出 x=10,除了以上几个值,都输出x=none。 package hgj; import java.util.Scanner; public class dfg { public static void main(S 阅读全文
posted @ 2020-03-26 11:43 天赐小白 阅读(121) 评论(0) 推荐(0)
摘要:package sdsv; import java.util.Scanner; public class demo { public static void main(String[] args) { @SuppressWarnings("resource") Scanner sc=new Scan 阅读全文
posted @ 2020-03-21 12:22 天赐小白 阅读(162) 评论(0) 推荐(0)
摘要:第三题 华氏度50转成摄氏度是多少package chem; public class vhj { public static void main(String[] args) { int C; int F = 50; C = (F - 32)*5/9; System.out.println(C); 阅读全文
posted @ 2020-03-19 12:00 天赐小白 阅读(67) 评论(0) 推荐(0)
摘要:package chem; public class j { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("hello"); } } 阅读全文
posted @ 2020-03-07 12:20 天赐小白 阅读(94) 评论(0) 推荐(0)