Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <cmath>
- using namespace std;
- void Rofyda_Elghadban(){
- #ifndef ONLINE_JUDGE
- freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
- #endif
- }
- int main()
- { Rofyda_Elghadban();
- float A, B, floor, ceil, round;
- cin >> A>> B;
- cout<<"floor "<<A<<" / "<<B<<" = "<<floor(A/B) <<"\n";
- cout<<"ceil "<<A<<" / "<<B<<" = "<<ceil(A/B) <<"\n";
- cout<<"round "<<A<<" / "<<B<<" = "<<round(A/B) <<"\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement