DISPLAY

Description:

Vasu has a home and like to display the length and breadth of the same (Hint: Class C1 gets length and breadth as input which is used by class C2 derived from C1. C2 displays it using a function) Test Case 1 Input (stdin) 20.0 30.0 Expected Output 20.0 30.0 Test Case 2 Input (stdin) 5.6 6.85 Expected Output 5.6 6.85

Program :

import java.util.*;

public class TestClass {

public static void main(String[] args) {

       double a,b;

       Scanner in=new Scanner(System.in);

       a=in.nextDouble();

       b=in.nextDouble();

       System.out.println(a);

       System.out.println(b);

       

}

}