提示:您可在线编辑运行本教程的实例 - 运行实例,去试试!
资产负债表程序示意图
public class Main { public static void main(String[] args) { System.out.print("Total credit (in US dollars):\t"); System.out.println(100 + 150);//时 代 Java - nowjava.com 提供 System.out.print("Total debit (in US dollars):\t"); System.out.println(50 + 25 + 100); System.out.println((100 + 150) - (50 + 25 + 100)); System.out.print("Balance:"); } }