Addition of Two Numbers

package Prog;


/**
 * The Class Addition.
 */
public class Addition
{

/**
* The main method.
*
*
*/
public static void main(String args[])
{
Addition a=new Addition();
a.sum();

}

/**
* Sum.
*/
public void sum()
{

int a,b;
a=10;
        b=20;
        int sum=a+b;
System.out.println(sum);

}
}

--------------------------------------------------------------------------------------------------------------------------

Output:
30

Post a Comment

2 Comments

  1. thank you for sharing....now this is the time to lead your life then learn
    Software Testing Training in Bangalore

    ReplyDelete
  2. Good job in presenting the correct content with the clear explanation. The content looks real with valid information. Good Work

    DevOps is currently a popular model currently organizations all over the world moving towards to it. Your post gave a clear idea about knowing the DevOps model and its importance.

    Good to learn about DevOps at this time.


    devops training in chennai | devops training in chennai with placement | devops training in chennai omr | devops training in velachery | devops training in chennai tambaram | devops institutes in chennai | devops certification in chennai | trending technologies list 2018

    ReplyDelete
Emoji
(y)
:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:P
:o
:>)
(o)
:p
(p)
:-s
(m)
8-)
:-t
:-b
b-(
:-#
=p~
x-)
(k)