Program for adding two numbers.
0
03 Java Operators.
Program for adding two numbers:
Program for adding two numbers:
//AddingTwoInts.java
class AddingTwoInts
{
public static void main(String[] args)
{
int a = 60;
int b = 70;
int c = a + b;
System.out.println("The addtion of " + a + " and " + b + " is " + c);
}
}
Out Put:
The addition of 60 and 70 is 130
0 comments: