fork download
  1. #include <stdio.h>
  2. #include <iostream>
  3. #include <iomanip>
  4. using namespace std;
  5.  
  6. int main() {
  7. printf("%.0lf\n", 0.5);
  8. cout << fixed << setprecision(0) << 0.5 << endl;
  9.  
  10. printf("%.0lf\n", 1.5);
  11. cout << fixed << setprecision(0) << 1.5 << endl;
  12.  
  13. printf("%.0lf\n", 2.5);
  14. cout << fixed << setprecision(0) << 2.5 << endl;
  15. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
0
0
2
2
2
2