Function Overloading

Description:

using function overloading concept two functions can have same name if number and/or type of arguments passed are different Test Case 1 Input (stdin) 5.5 Expected Output 5 0.5 Test Case 2 Input (stdin) 6.3 Expected Output 6 0.3

Program :

#include <iostream>
using namespace std;
int main()
{
  float a;
  cin>>a;
  int b;
  b=a;
  float c;
  c=a-b;
  cout<<b<<'\n'<<c;
 return 0;
}