Sum of Two Number
Java Program to Add two Numbers
Here we will see Two programs to Add two Integer numbers, In the First program we specify the value of both the numbers in the program...
EXAMPLE :-
public class Add {
public static void main(String[] args) {
int number1 = 50, number2 = 150, sum;
sum = number1 + number2;
System.out.println("Sum of Two Numbers :: "+sum);
}
}
OUTPUT
Sum of Two Numbers :: 200
No comments:
Post a Comment
Please do not any spam link in Comment Box