wap in java to enter two no. and find the difference of their sum and product
Answers
Answered by
1
Answer:
Your answer is in the attachment.
The first photo is the program.
The second photo is the output.
I entered 10 and 2
-10*2+10+2
-20+12
= -8 Answer.
Note if you want the difference between product and sum so write
System.out.println("The difference between product and sum ="+(p-sum);
Attachments:
Similar questions
Computer Science,
2 months ago
Math,
2 months ago
English,
4 months ago
English,
10 months ago
Physics,
10 months ago