菜鸟学涂
来源:互联网 发布:引物设计软件 编辑:程序博客网 时间:2024/04/20 12:39
请高手精简指导
public class Text217 {
/**
* 将成绩分等级
*/
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
System.out.print("请输入您的成绩:");
float score = sc.nextFloat();
if(score>=90)
System.out.println("您获得A,优秀!");
else if(score>=80)
System.out.println("您获得B,很棒!");
else if(score>=70)
System.out.println("您获得C,良好!");
else if(score>=60)
System.out.println("您获得D,刚及格!");
else
System.out.println("您获得E,要加油!");
}
}
public class Text218 {
/**
*
* 打印以下图标
* *
**
***
****
*
**
***
****
*/
public static void main(String[] args) {
for(int t=0;t<2;t++){
for(int i=1;i<5;i++){
for(int j=0;j<i;j++)
System.out.print("*");
System.out.println();
}
}
}
}
import java.util.Scanner;
public class Text219 {
/*
* 1
1 2 1
1 2 3 2 1
1 2 3 4 3 2 1
1 2 3 4 5 4 3 2 1
*/
public static void main(String[] args) {
int i;
int j;
int t;
Scanner sc=new Scanner(System.in);
System.out.println("请输入要打印的行数:");
int line=sc.nextInt();
for (i = line; i > 0; i--) {
for (j = 1; j < i + 1; j++)
System.out.print(" ");
for (t = 0; t <= line+1 - j;) {
t++;
System.out.print(t+" ");
}
for (int r = 0; r < line+1 - j;) {
r++;
System.out.print((t - r)+" ");
}
System.out.println();
}
}
}
- 菜鸟学涂
- 菜鸟学C++
- 特级菜鸟学编程
- 菜鸟学脱壳
- 菜鸟学Java
- 菜鸟学PetShop一
- 菜鸟学飞
- 菜鸟学SQL语句
- 菜鸟学托福
- 菜鸟学C
- 菜鸟学WINCE
- 菜鸟学C#
- 菜鸟学PureMVC记
- 菜鸟学EXT
- 菜鸟准备学.net
- 菜鸟学TCP端口
- 菜鸟学 Python-Class
- 菜鸟学飞进行时
- Linux文件编程之【系统调用】—— lseek()
- android中dip、px相互换算
- linux网络api实现
- ubuntu下安装与卸载软件方法
- Linux文件编程之【系统调用】—— access()
- 菜鸟学涂
- 关于C#数组初始化的效率测试
- 关于Android中调用了post方法后貌似没有执行run方法的解释及解决办法
- 通过LD_ASSUME_KERNEL设置Linux的线程实现模型
- android findViewById
- Linux文件编程之【系统调用】——综合实例:文件拷贝
- [C#]写自己的类库
- Jboss7 配置 入门级配置
- 腾讯手机电商负责人马斌斌:移动电子商务生态环境的趋势与商机