Log in

View Full Version : Java code


sankulanushkul
Jun 6, 2007, 10:31 PM
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

benn11
Jun 7, 2007, 04:57 AM
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!!!

naimlatifi
Aug 22, 2008, 05:02 PM
Would you like to have all the code for addition of two or more number? What is the problem in this program ?


***Naim****