AcWing 610. 工资和奖金 - Java
原题链接
简单
作者:
KYCygni
,
2021-02-27 23:20:58
,
所有人可见
,
阅读 287
Java 代码
/**4 MDKJ
“Blockchain is the tech. Bitcoin is merely the first mainstream manifestation of its potential.”
– Marc Kenigsberg
*/
import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner cin = new Scanner(System.in);
cin.nextLine();
double base_salary = cin.nextDouble();
double sales = cin.nextDouble();
System.out.println ("TOTAL = R$ " + String.format("%.2f", (base_salary + 15 * sales / 100)));
}
}