fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. float f = 267.0f;
  7. std::cin >> f;
  8. unsigned char c = f;
  9. cout << (int)c << endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 3432KB
stdin
267
stdout
11