Displaying output

Description:

Demonstrate a c program using function overloading that prints integer, float and character Test Case 1 Input (stdin) 10 25.057 c Expected Output The integer is 10 The float is 25.057 The character is c Test Case 2 Input (stdin) 15 35.87 e Expected Output The integer is 15 The float is 35.87 The character is e

Program :

#include <iostream>

using namespace std;

int main()

{

  int a;

  cin>>a;

  cout<<"The integer is "<<a<<"\n";

  float b;

  cin>>b;

  cout <<"The float is "<<b<<"\n";

  char c;

  cin>>c;

  cout<<"The character is "<<c;

return 0;

}