//This program take tho integer value from user and print the summation of the given number......
package SolveProblem;
import java.util.Scanner;
public class AddTwoNumber {
public static void main(String[] args) {
Scanner myScanner=new Scanner(System.in);
int a,b;
System.out.println("Enter two values : ");
a=myScanner.nextInt();
b=myScanner.nextInt();
int sum=a+b;
System.out.println("Summation of the two given number is : "+sum);
}
}
//Enter two values : 7 8
//Summation of the two given number is : 15
No comments:
Post a Comment