Sketch of the balance sheet program - Java Language Basics

Java examples for Language Basics:Variable

Description

Sketch of the balance sheet program

Demo Code

public class Main {
    public static void main(String[] args) {
        System.out.print("Total credit (in US dollars):\t");
        System.out.println(100 + 150);

        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:");
    }/* ww w . ja va2 s. c om*/
}

Result


Related Tutorials