fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. double a = 21.09399;
  6. float b = 10.20;
  7. int c ,d;
  8. c = (int) a;
  9. d = (int) b;
  10. cout << c <<" " << d;
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
21 10