Javase 简单练习
public class Test10 { public static void main(String[] args) { System.out.println("-----------------------------商城库存清单----------------------------------"); System.out.println("品牌型号\t尺寸\t价格\t库存数"); double j=6988.88; int k=5; System.out.println("MacBookAir\t13.3\t"+j+"\t"+k); double j1=5999.99; int k1=10; System.out.println("ThinkpadT450\t14.0\t"+j1+"\t"+k1); double j2=4999.5; int k2=18; System.out.println("ASUS-FL5800\t15.6\t"+j2+"\t"+k2); int k3=k+k1+k2; System.out.println("总库存数:\t"+k3); double j3=j+j1+j2; System.out.print("库存商品总金额:\t"+j3); } }