fork download
  1. #include<iostream>
  2. using namespace std;
  3. #include<cstdlib>
  4. #include<cmath>
  5. #include<math.h>
  6. using std::sin;
  7. using std::cos;
  8. #include<iostream>
  9. using namespace std;
  10. #include<cstdlib>
  11. #include<cmath>
  12. #include<math.h>
  13. using std::sin;
  14. using std::cos;
  15.  
  16. int main(){
  17. float m=4.56;
  18. uint8_t r = round(m);
  19. printf("%d", r);
  20.  
  21. }
Success #stdin #stdout 0.01s 5520KB
stdin
Standard input is empty
stdout
5