Computer Science, asked by chiragmeht66, 1 month ago

c. Write a java program for subtraction of two number. [Initialization of Variables].​

Answers

Answered by senthilchellam1982
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