c. Write a java program for subtraction of two number. [Initialization of Variables].
Answers
Answered by
0
Explanation:
In the program,
Declare variables num1, num2, sub.
The program asks input from the user.
Then the user enters the input values for num1, num2.
The program will read the input using scanner class and store the variables num1 and num2 respectively.
Define the method(subtraction()) for find subtraction.
Similar questions
Computer Science,
19 days ago
Math,
19 days ago
Chemistry,
19 days ago
Math,
1 month ago
Physics,
1 month ago
Social Sciences,
9 months ago
Physics,
9 months ago
Math,
9 months ago