Friday, 1 April 2016

Chapter 1 Exercise 5, Introduction to Java Programming, Tenth Edition Y. Daniel LiangY.

(Compute expressions) Write a program that displays the result of
(9.5 * 4.5 - 2.5 * 3) / (45.5 - 3.5)


public class Exercise_05 {

    public static void main(String[] arg) {

        System.out.println((9.5 * 4.5 - 2.5 * 3) / (45.5 - 3.5));
    }
}

1 comment :