63 041
Assignments Done
99,1%
Successfully Done
In July 2018

Answer to Question #3555 in Java | JSP | JSF for Y mukundareddy

Question #3555
Write a program to take two integers as input and perform all possible
calculation function on them.
Expert's answer
public class Main {




public static void main(String[] args) {

int a = 20, b = 10;




System.out.println("a & b = " + (a&b));

System.out.println("a | b = " + (a|b));

System.out.println("a + b = " + (a+b));

System.out.println("a - b = " + (a-b));

System.out.println("a * b = " + (a*b));

System.out.println("a / b = " + (a/b));

System.out.println("a % b = " + (a%b));

}

}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions