Answered step by step
Verified Expert Solution
Question
1 Approved Answer
4. public class process{ static int result; public static int addition(int a, int b) { result = a +b; return result; } public static int
4. public class process{ static int result; public static int addition(int a, int b) { result = a +b; return result; } public static int subtraction(int a, int b) { result = a-b; return result; } public static int multiplication(int a, int b) { result = a*b; return result; } public static void main(String[] args) { System.out.print("Enter First Number :"); Scanner s = new Scanner(System.in); int a = s.nextInt(); System.out.print("Enter Second Number:"); Scanner p = new Scanner(System.in); int b = p.nextInt(); addition(a,b); System.out.println("First Number :" +a); System.out.println("Second Number :" +b); System.out.println("Addition Result:" +result); substruction(a,b); System.out.println("Subtraction Result:" +result); multiplaction(a,b); System.out.println("Multiplication Result:" +result); } What does the above program do? Explain it
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started