Addition of Two Numbers

Description:

write java program to find the addition of two Numbers. get the two integer numbers at the run time . add that two numbers then print the value with at-least two decimal place. Note: inputs may whole number or fractional number output should print with two decimal place Sample Input 1234.4321 12300.12 Sample Output Addition is:13534.5521 Test Case 1 Input (stdin) 12 19 Expected Output Addition is:31.00 Test Case 2 Input (stdin) 55 44.44 Expected Output Addition is:99.44

Program :

import java.util.*;

public class TestClass {

public static void main(String[] args) {

Scanner in=new Scanner (System.in);

       double a=in.nextDouble();

       double b=in.nextDouble();

       System.out.printf("Addition is:"+"%.2f",(a+b));

}

}