标签:
import java.util.Scanner; /** * 财务应用程序,计算小费 * @author Administrator * */ public class Main3 { public static void main(String[] args) { Scanner input = new Scanner(System.in); double number = input.nextDouble(); double rate = input.nextDouble(); double xiaofei =number * rate /100; double total = number + xiaofei; System.out.println(xiaofei+"---"+total); } }
标签:
原文地址:http://www.cnblogs.com/aicpcode/p/4396261.html