2011-07-13T16:38:05-04:00
Write a program to take two integers as input and perform all possible
calculation function on them.
1
2012-03-16T08:56:06-0400
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 !
Learn more about our help with Assignments:
Java JSP JSF
Comments