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
/**
* 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
2 Comments
thank you for sharing....now this is the time to lead your life then learn
ReplyDeleteSoftware Testing Training in Bangalore
Good job in presenting the correct content with the clear explanation. The content looks real with valid information. Good Work
ReplyDeleteDevOps 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