/*
Write a function to return by its return statement the value of f at x,
where
 f(x) = x * x + 5 * x - 3
Input: x (of a floating point type).
Output: f(x).
Write also a driver program to test the function.
*/

#include <iostream>
using namespace std;

// Function prototype/declaration
float f(float x);

int main()
{
	float x;
	cout << "Enter a real number: ";
	cin >> x;
	cout << f(x /* argument */) /* call statement */ << endl;
	return 0;
}

// Definition of Function f
float f(float z /*x is called parameter*/) //header or heading
{
	float r;
	r = z * z + 5 * z - 3; 
	return r;
}
