/*
Write a function to return by its return statement the value of f at x,y, 
where
 f(x,y) = x * y + 5 * x - 3 * y

Input: x,y (both of a floating point type)
Output: f(x,y).

Write also a driver program to test the function.
*/

#include <iostream>
using namespace std;

// Function prototype/declaration
float f(float,float);

int main() // caller of function f
{
	float x, y;
	cout << "Enter two real numbers: ";
	cin >> x >> y; 
	cout << f(x,y) /* call statement */ << endl;
	
	/* Or you can do it as follows:
	float z = f(x,y);
	cout << z << endl;
	*/
	
	return 0;
}

// Definition of Function f
float f(float m, float n)
{
	float r;
	r = m * n + 5 * n - 3 * n;
	return  r;

	/* Or you can do it as follows:
	 return m * n + 5 * n - 3 * n;
	*/
}
