0
How can i find the sum of two numbers using Java
14 Answers
+ 2
I can do it with c
+ 2
Thank you
+ 2
By using math operations
+ 1
I just need different ideas for the answer am still learning
+ 1
use math operator, use binary operator, use a loop...
Be creative and play around.
+ 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.. :)
+ 1
For example,
int num1=10;
int num2=70;
int sum= num1 + num2;
System.out.print("Sum is: "+ sum);
}
0
Little Rozina Frank why don't you first start learning java?
0
Can you do it using some other languages?
0
c=a+b)))