Sequence of values

Description:

Passing the value and manipulating by using the derived class have 3 classes every class inherits its immediate super class and display out as sequence of three classes Test Case 1 Input (stdin) 5 4.3 T Expected Output 54.3T Test Case 2 Input (stdin) 7 2.66 T Expected Output 72.66T

Program :


#include <iostream>

using namespace std;

int main()

{

   int a;

  float b;

  cin>>a;

  cin >>b;

 

  char s;

  cin>>s;

  cout<<a<<b<<s;

return 0;

}