write a java program to find sum and difference of a number
Answers
Answered by
1
Answer:
I don't exactly know what programs you're using,but,
make variables for user input. this has to be done to get the numbers for subtraction and addition.
these will be of type Int
then, you can get the addition or subtraction using x-y(whatever you name your variables) or X+y
then using console.printLn(x-y) or the e printing command, output your answer
Explanation:
hope this helps you, I don't exactly know which context you're asking this question in
but I hope I gave you an idea of what to do
Similar questions
Math,
2 months ago
Social Sciences,
2 months ago
Hindi,
2 months ago
Physics,
5 months ago
Social Sciences,
5 months ago
Math,
10 months ago
Math,
10 months ago
Economy,
10 months ago