# Part of a calculator

• 1
• Locked
Let's make the computer count for us! Ultimately, that's what they were created for. In this task, we ask the computer to calculate the sum and product of two numbers. Everything is super simple: we declare int variables, assign them a value, add and multiply them, and then display the result.
You can't complete this task, because you're not signed in.
Sol Ange
Level 2 , Spain
31 January, 00:56
prestar atención al ejemplo donde explica las condiciones de la tarea
Margaret
Level 2 , Columbus, United States
19 April 2021, 03:16
Can someone help me guide what I'm missing here?
Roman
Level 41
19 April 2021, 05:09
Please post your question with the attached solution in the section Help.
Belinda
Level 4 , Portland, United States
8 May 2020, 21:46
Every single time I hit "code analysis" it says: Comments on code style were not found. I've added comments to every line of code. Anyone else having this problem? Not sure what is expected for comments. Any ideas?
Roman
Level 41
12 May 2020, 06:31
"code analysis" wants Java Documentation Comment (Javadoc)
Belinda
Level 4 , Portland, United States
12 May 2020, 21:34
I only know these two. // and /* comment here */ otherwise, I don't know what Javadoc is.
David Johnson
Level 3 , Athens, United States
29 January 2020, 20:03
I hate the fact that I forgot what "Product" meant. I am in my 30's...Needless to say, I failed 3 times in a row on this one before getting it. lol Good luck!
Elyse Segebart
Level 3 , Perry, USA
18 December 2019, 14:06
I am not passing because of this: The program should have two int variables a and b. I have two int variables a and b and immediately assigned them values. What is wrong?
Elyse Segebart
Level 3 , Perry, USA
18 December 2019, 14:08
Nevermind, I realized what I did from the help section.
David Mason
Level 7 , Ashburn, United States
4 October 2019, 22:23
By highlighting the sum and product in blue, it leads you to believe you should be using methods for the calculation, when this is not the case.
Aaron Maas
Level 2 , Huntington Beach, United States
6 November 2019, 22:05
You can do it though, it works. In fact, they probably want us to create methods for practice.
Cam
Level 22 , Austin, United States
30 September 2019, 08:59
The key is in the system output ;)
Harshit Chouhan
Level 2 , Delhi, India
12 June 2019, 20:07
Unable to solve this code. plz help me out
``````

``````
Asanga Costa
Level 2 , Zurich, Switzerland
18 June 2019, 10:30
Hi Harshit, I spent a lot of time in this also. But the code is actually pretty easy, in fact you only use 'public void main' (the main method)- my mistake was in thinking you actually need another two methods for Sum and product, but no, everything goes in the main method...Hope that helps! Asanga
Belinda
Level 4 , Portland, United States
8 May 2020, 21:43
In the System.out.println(a+b) Do the same thing to get the product, but on another line.
Bryce Lindley
Level 9 , Olympia, United States
19 January 2019, 00:51
Integer.sum() or + Don't create variables for sum and product.
devika