Advertisement
Rofyda_Elghadban1

Untitled

Dec 2nd, 2021
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. using namespace std;
  5.  
  6. void Rofyda_Elghadban(){
  7. #ifndef ONLINE_JUDGE
  8. freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
  9. #endif
  10. }
  11.  
  12. int main()
  13. { Rofyda_Elghadban();
  14. float A, B, Floor, Ceil, Round;
  15. cin >> A>> B;
  16. cout<<"Floor "<<A<<" / "<<B<<" = "<<Floor(A/B) <<"\n";
  17. cout<<"Ceil "<<A<<" / "<<B<<" = "<<Ceil(A/B) <<"\n";
  18. cout<<"Round "<<A<<" / "<<B<<" = "<<Round(A/B) <<"\n";
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement