The program below is the answer to Liang’s Introduction To Java Programming (9th Edition) Chapter 1 Exercise 1.5.
1 2 |
/**<br /> *<br /> * @Author: Aghatise Osazuwa<br /> * Website: www.cscprogrammingtutorials.com<br /> *<br /> * Exercise 1.5 - Compute Expressions<br /> *<br /> */ <br /><br />public class Ex01_05 {<br /><br /> public static void main(String[] args) {<br /><br /> System.out.println("9.5 x 4.5 - 2.5 x 3");<br /> System.out.print("------------------- = "<br /> + (((9.5 * 4.5) - (2.5 * 3)) / (45.5 - 3.5)) + "n");<br /> System.out.println(" 45.5 - 3.5");<br /><br /> }<br />}<br /> |
Click here to see other solutions to Introduction to Java Programming.
1 Comment
Play Our Android Game.
Bus Rush 2