package Hello.lrx.nb;
import java.util.Scanner;
public class zhaoling {
public static void main(String[] args) {
int amount = 0;
int price = 0;
System.out.println("你好!");
Scanner a =new Scanner(System.in);
System.out.println("请输入票面:");
amount = a.nextInt();
System.out.println("请输入金额:5");
price = a.nextInt();
System.out.println(amount+"-"+price+"="+(amount-price)+"\n找您"+(amount-price));
}
}
商店的买卖简单实现
最新推荐文章于 2024-11-01 14:48:20 发布