Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases DeMYSTiFieD

Authors: Andy Oppel

2nd Edition

0071747990, 978-0071747998

More Books

Students also viewed these Databases questions