Computer Science, asked by allstar3, 3 months ago

wap in java to enter two no. and find the difference of their sum and product​

Answers

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