Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- float liczba;
- int main()
- {
- cout<<"podaj liczbe:";
- cin>>liczba;
- cout<<"round:" <<round(liczba)<<endl;
- cout<<"ceil:" <<ceil(liczba)<<endl;
- cout<<"floot:" <<floor(liczba)<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement