Computer Science, asked by niranjancp, 5 months ago

write a java program to find sum and difference of a number​

Answers

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