What is wrong in my code..?


4/5/2020 7:27:53 AM


2 Answers

New Answer


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


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.