fork 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. }
Success #stdin #stdout 0s 5536KB
stdin
Standard input is empty
stdout
40
40
41