#include using namespace std; int main() { float x; cout << "Enter a value for x: " ; cin >> x; cout << "as an int " << x << " = " << static_cast(x) << endl; cout << "as a rounded int " << x << " = " << static_cast(x + 0.5) << endl; // c = static_cast(5)/static_cast(9) ... // c = float(5)/9 ... // // c = static_cast( (5.0/9.0 * (f-32.0)) +0.5) }