- 博客(6)
- 收藏
- 关注
原创 输出九行三角形
public class wyd { public static void main(String[] args) { for (int a = 1; a <=9; a++) { for (int b = 9; b >= a; b--) { System.out.print(" "); } for (int b = 1; b <= a; b++) { .
2021-11-16 15:06:05 331
原创 九九乘法表
public class wy8 { public static void main(String[] args) { int a, b; for (a= 1; a <= 9; a++) { for (b = 1; b <= a; b++) { System.out.print(a + "*" + b + "=" + a * b + "\t"); if(a==b) S.
2021-11-15 22:30:54 195
原创 录取分数线查询
package com.company;import java.util.Scanner;public class wy4 { public static void main(String[] args) {System.out.println("请输入要查询的录取分数线(比如民办本科,艺术类本科,体育类本科,二本,一本):");Scanner variety=new Scanner(System.in);String x= variety.next(); switch(.
2021-11-15 16:44:20 336
原创 三位水仙花数
import java.util.Scanner;public class wy7 { public static void main(String[] args) { int a=0; for (int i = 100; i <= 999; i++) {int b=i%10;int c=i/10%10;int d=i/100%10;if(i==b*b*b+c*c*c+d*d*d){ a++; System.out.println(.
2021-11-15 16:39:14 398
原创 润年的判断
package com.company;import java.util.Scanner;public class wy1 { public static void main(String[]args) { System.out.println(""); int year; Scanner A = new Scanner(System.in); year = A.nextInt(); if ((year % 4 =.
2021-11-13 15:22:28 378
原创 月份的分类
package com.company;import java.util.Scanner;public class wy4 {public static void main(String[] args){int l=3;switch(l){ case 3: case 4: case 5: System.out.println("春天"); case 6: case 7: case 8: System.out.println("夏天"); c.
2021-11-12 16:43:43 641
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人