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 30 Expected Output 20 30 Test Case 2 Input (stdin) 5.6 6.85 Expected Output 5.6 6.85

Program :

#include <iostream>

using namespace std;

int main()

{

  float a,b;

  cin>>a;

  cin>>b;

  cout<<a<<"\n";

  cout<<b;

return 0;

}