Ask Experts Questions for FREE Help !
Ask
    sankulanushkul's Avatar
    sankulanushkul Posts: 3, Reputation: 1
    New Member
     
    #1

    Jun 6, 2007, 10:31 PM
    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
    benn11's Avatar
    benn11 Posts: 1,036, Reputation: 43
    Ultra Member
     
    #2

    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's Avatar
    naimlatifi Posts: 26, Reputation: 1
    New Member
     
    #3

    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****

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Java code [ 2 Answers ]

Please give me a simple java code for addition of two numbers here two numbers are accepted From users please give me explanation about each code

Java code [ 1 Answers ]

What is difference between argument and parameter element as use in calling routines/coding a method? Can one use them interchangeably for talking/writing purposes?

Java Is used for [ 2 Answers ]

When I rest my pointer over a link, it diplays information about that link Is that Java at work? Why are there different Jav versions? Is Java compiled like C or interpeted like Basic? Is this contained in Internet Explorer? Thank You very much

By using vc++ or java? [ 1 Answers ]

Hi, I want to make image processing application.which programming language I should use? Either vc++ or java or anything else? Please guide me early.

Java Help! [ 7 Answers ]

Hi Experts, I'm not sure if I'm posting this in the right category, but I sure hope someone can still help me. I'm not able to view Java applets. I've downloaded the most recent version of JVM. I have version 1.4.1. I've tried changing some settings (like enabling Java in my internet...


View more questions Search