fork(2) download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. float a = 0.2;
  6. cout << ceil(200 * a) << '\n';
  7.  
  8. double b = 0.2;
  9. cout << ceil(200 * b) << '\n';
  10.  
  11. long double c = 0.2;
  12. cout << ceil(200 * c) << '\n';
  13.  
  14. float d = 0.2;
  15. cout << ceil(200.0d * d) << '\n';
  16. }
Success #stdin #stdout 0s 5588KB
stdin
Standard input is empty
stdout
40
40
41
41