New course! Every coder should learn Generative AI!
Try a free lesson+ 8
What is wrong in my code..?
2 Answers
+ 8
Okay..I understood well.. thank u.. Abirame Dhevendran
+ 2
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.