write down a Java program to calculate sum of two numbers taking a method
Answers
Answered by
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
Math,
5 months ago
Math,
5 months ago
CBSE BOARD X,
5 months ago
Math,
10 months ago
Computer Science,
10 months ago