+6

What is wrong in my code..?

https://code.sololearn.com/c2sj00GVPowV/?ref=app

4/5/2020 7:27:53 AM

manojkdm18

2 Answers

New Answer

+7

Okay..I understood well.. thank u.. Abirame Dhevendran

+1

The add and sub methods are returning an int. You have to store in in an int variable. In line 27 and 28 int sum = d.sum(a,b); int sub = d.sub(a,b); The sum and the difference value will be stored in those two variables. You can print those variables if you want to view them in the output.