How to add two numbers in java.
class AddExample
{
public
static void main(String args[])
{
int
a=5,b=6;
System.out.println(“sum
= ”+(a+b));
}
}
OUTPUT :
Sum
= 11
No comments:
Post a Comment