Write a Java program to print the result of the following operationsTest Data:a. -5 + 8 * 6b. (55+9) % 9c. 20 + -3*5 / 8d. 5 + 15 / 3 * 2 - 8 % 3
Expected Output :4311913
public class Exercise4 { public static void main(String[] args) { System.out.println(-5 + 8 * 6); System.out.println((55+9) % 9); System.out.println(20 + -3*5 / 8); System.out.println(5 + 15 / 3 * 2 - 8 % 3); } }
Sample Output:
43 1 19 13
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer