Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Compiled Languages > Java   »   java code

 
Question Tools Search this Question Display Modes
Question
 
 
#1  
Old Jun 6, 2007, 09:31 PM
sankulanushkul
New Member
sankulanushkul is offline
 
Join Date: Jun 2007
Posts: 3
sankulanushkul See this member's comment history on his/her Profile page.
java code

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

Reply With Quote
 
     

Answers
 
 
Old Jun 7, 2007, 03:57 AM   #2  
benn11
Ultra Member
benn11 is offline
 
benn11's Avatar
 
Join Date: Apr 2007
Posts: 1,036
benn11 See this member's comment history on his/her Profile page.
Declare a Integer:
int num1;
int num2;


Declare a third integer to store the result:
[B]int result;[/b]

The addition statement will be:
result = num1+num2;

Try this, i hope it works!!!
  Reply With Quote
 
     


Question Tools Search this Question
Search this Question:

Advanced Search
Display Modes

 
Similar Sponsors

Similar Questions
Question Asker Topic Answers Last Post
java code sankulanushkul Java 1 Jun 6, 2007 11:33 AM
Java code rst9380 Java 1 May 2, 2007 04:56 AM
Java Is used for cleancondenser Utilities 2 Feb 27, 2006 12:28 AM
by using vc++ or java?? tarj Java 1 Aug 20, 2003 10:30 PM
Java Help! dgf8607 Internet & the Web 7 Jun 24, 2003 10:59 AM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 04:47 AM.

Content Relevant URLs by vBSEO 3.0.0 RC6 © 2006, Crawlability, Inc.