Q:

(Compute expressions) Write a program that displays the result of

1

(Compute expressions) Write a program that displays the result of

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

public class Exercise_01_05 {
	public static void main(String[] args) {
		System.out.println("9.5 X 4.5 - 2.5 X 3");
		System.out.println("-------------------");
		System.out.println("     45.5 - 3.5");
		System.out.println("         =");
		System.out.println(((9.5 * 4.5) - (2.5 * 3)) / (45.5 - 3.5));
	}
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now