Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Java (https://www.askmehelpdesk.com/forumdisplay.php?f=440)
-   -   Java code (https://www.askmehelpdesk.com/showthread.php?t=99224)

  • Jun 6, 2007, 10:31 PM
    sankulanushkul
    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
  • Jun 7, 2007, 04:57 AM
    benn11
    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!!!
  • Aug 22, 2008, 05:02 PM
    naimlatifi
    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.