0

How can i find the sum of two numbers using Java

21st Nov 2019, 12:31 PM
Rozina Frank
Rozina Frank - avatar
14 Answers
21st Nov 2019, 1:16 PM
Rstar
Rstar - avatar
+ 2
I can do it with c
21st Nov 2019, 12:39 PM
Rozina Frank
Rozina Frank - avatar
+ 2
Thank you
21st Nov 2019, 1:27 PM
Rozina Frank
Rozina Frank - avatar
+ 2
By using math operations
22nd Nov 2019, 10:42 AM
Master Genius [ INACTIVE ]
Master Genius [ INACTIVE ] - avatar
+ 1
I just need different ideas for the answer am still learning
21st Nov 2019, 12:36 PM
Rozina Frank
Rozina Frank - avatar
+ 1
use math operator, use binary operator, use a loop... Be creative and play around.
21st Nov 2019, 12:46 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
Hi Rozina,logic of the code will be same for both c and java...not only for these two..but also for most of the programming languages..only change will be the syntax.Just learn the syntax and semantics of java..you can easily write your own code.. :)
22nd Nov 2019, 1:38 AM
Swati K
Swati K - avatar
22nd Nov 2019, 3:56 PM
Eduardo Cavalcante
Eduardo Cavalcante - avatar
+ 1
For example, int num1=10; int num2=70; int sum= num1 + num2; System.out.print("Sum is: "+ sum); }
22nd Nov 2019, 5:12 PM
Leanard Luang
Leanard Luang - avatar
0
Little Rozina Frank why don't you first start learning java?
21st Nov 2019, 12:33 PM
Avinesh
Avinesh - avatar
0
Can you do it using some other languages?
21st Nov 2019, 12:38 PM
Avinesh
Avinesh - avatar
0
c=a+b)))
22nd Nov 2019, 12:57 PM
DDfire
DDfire - avatar