03 2020 档案
摘要:1. 分别使用for循环,while循环,do循环求1到100之间所有能被3整除的整数的和。(知识点:循环语句) 2. 输出0-9之间的数,但是不包括5。(知识点:条件、循环语句) 3. 编写一个程序,求整数n的阶乘,例如5的阶乘是1*2*3*4*5(知识点:循环语句) 4. 编写一个程序,输入任意
阅读全文
摘要:1. package com.itheima08; import java.util.Scanner; public class HelloBudget { public static void main(String[] args ){ Scanner input=new Scanner(Syst
阅读全文
摘要:package kljjjjj; public class kljjjjj { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("输入年份"); int ye
阅读全文
摘要:package kljjjj; public class kljjjjj { public static void main(String[] args) { char a ='A'; System.out.println((char)( a+ 32)); } }
阅读全文
摘要: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
阅读全文
摘要:package kljj2; public class kljjj { public static void main(String[] args) { int h =50; int s =(h-32)*5/9; System.out.println(s); } }
阅读全文
摘要: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
阅读全文
摘要:package hello1; public class hallo1 { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("HELLO"); System.
阅读全文

浙公网安备 33010602011771号