Question: M , WUbject Urlented Programming with Class Quiz 1. Write down what will the output of this program be on the screen. public class Math{
M , WUbject Urlented Programming with Class Quiz 1. Write down what will the output of this program be on the screen. public class Math{ public static void main(String argv){ int a, b, c; a = 10; b = 20; if ( a + b >a-b){ System.out.println("The sum is greater than the difference"); else { System.out.println(" The difference is greater than sum"); System.out.println("a = " + a + ", b = " + b + ". The sun (a+b)); System.out.println("The difference = " + (a-b))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
