03 2020 档案

摘要:1. 分别使用for循环,while循环,do循环求1到100之间所有能被3整除的整数的和。(知识点:循环语句) 2. 输出0-9之间的数,但是不包括5。(知识点:条件、循环语句) 3. 编写一个程序,求整数n的阶乘,例如5的阶乘是1*2*3*4*5(知识点:循环语句) 4. 编写一个程序,输入任意 阅读全文
posted @ 2020-03-31 20:08 LiuZXin 阅读(97) 评论(0) 推荐(0)
摘要:1. package com.itheima08; import java.util.Scanner; public class HelloBudget { public static void main(String[] args ){ Scanner input=new Scanner(Syst 阅读全文
posted @ 2020-03-26 12:44 LiuZXin 阅读(139) 评论(0) 推荐(0)
摘要:package kljjjj; public class kljjjjj { public static void main(String[] args) { char a ='A'; System.out.println((char)( a+ 32)); } } 阅读全文
posted @ 2020-03-19 12:18 LiuZXin 阅读(109) 评论(0) 推荐(0)
摘要:package kljjj; public class kljjjj { public static void main(String[] args) { int x=0023; int a,b,c,d,sum; a=x/1000; b=x/100%10; c=x/10%10; d=x%10; su 阅读全文
posted @ 2020-03-19 12:05 LiuZXin 阅读(154) 评论(0) 推荐(0)
摘要:package kljj2; public class kljjj { public static void main(String[] args) { int h =50; int s =(h-32)*5/9; System.out.println(s); } } 阅读全文
posted @ 2020-03-19 11:55 LiuZXin 阅读(77) 评论(0) 推荐(0)
摘要:package klj; public class kjll { public static void main(String[] args) { int a=10; int b=14; int temp = a; a = b; b = temp; System.out.println("a="+a 阅读全文
posted @ 2020-03-19 11:15 LiuZXin 阅读(223) 评论(0) 推荐(0)
摘要:package hello1; public class hallo1 { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("HELLO"); System. 阅读全文
posted @ 2020-03-10 15:02 LiuZXin 阅读(258) 评论(0) 推荐(0)