Please give me a java program for additon of two numbers here nos are accepted from users here I am not confident about java program so please gieve me java code I only understand a hello program so please help me
![]() |
Please give me a java program for additon of two numbers here nos are accepted from users here I am not confident about java program so please gieve me java code I only understand a hello program so please help me
Declare a Integer:
int num1;
int num2;
Declare a third integer to store the result:
int result;
The addition statement will be:
result = num1+num2;
Try this, i hope it works!!!
Would you like to have all the code for addition of two or more number? What is the problem in this program ?
***Naim****
All times are GMT -7. The time now is 01:38 AM. |