首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
首页
>
试题广场
>
编写一个 if 语句,如果 score 大于 90 则增加
[问答题]
编写一个 if 语句,如果 score 大于 90 则增加 3%的支付。
添加笔记
求解答(0)
邀请回答
收藏(1)
分享
纠错
2个回答
添加回答
0
桃奈叶子
package AA;
import java.util.Scanner;
public class ah {
public static void main(String[] args){
double score=0;
System.out.print("请输入score");
Scanner in=new Scanner(System.in);
score=in.nextDouble();
if(score>90)
{
score=score*1.03;
}
System.out.print(score);
}
}
发表于 2021-04-02 18:15:49
回复(0)
0
牛客764247410号
public class shuzi{ public static void mian{ Scanner s1 =new Scanner(System.in); int e =s1. nextInt(); if(e>=90){ int e1 = e*3%; System. out. println(e1); } } }
发表于 2020-10-21 12:09:51
回复(0)
这道题你会答吗?花几分钟告诉大家答案吧!
提交观点
问题信息
上传者:
小小
难度:
2条回答
1收藏
1176浏览
热门推荐
相关试题
考虑以下Verilog代码片段,其...
Verilog
评论
(1)
在一个大型设计中,模块A (`a....
Verilog
评论
(1)
为了评估一个新上线的在线交易系统在...
软件测试
评论
(1)
某Spring Bean同时使用了...
Spring
评论
(1)
在Linux中,如何将当前终端会话...
Linux
评论
(1)
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题