#include <iostream.h> float f (float x) { return ((9.0 / 5.0) * x + 32.0); } void main () { float x, res; cout << "Enter x: "; cin >> x; res = f(x); cout << "Result = " << res << endl; }
No comments:
Post a Comment