Computer Science, asked by FriendlyAditya, 7 months ago

write down a Java program to calculate sum of two numbers taking a method​

Answers

Answered by itzstylishqueen2
1

Finding the sum of two numbers means the simple addition of both the numbers.

1. Create a separate variable to store the value of the sum. This can be of the type int.

2. The formula to find the sum is: Sum = First Number + Second Number.

3. To get these parameters (inputs) from the user, try using the Scanner function in Java.

please mark me as BRAINLIAST if it helped u

Similar questions