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,
4 months ago
Math,
4 months ago
Social Sciences,
4 months ago
Math,
9 months ago
Computer Science,
9 months ago