Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- float x_1, y_1, x_2, y_2, d;
- int main()
- {
- cout<<cbrt(27)<<endl;
- //operacje pierwiaastkowaiania mozemy zasstapic operacja potegowania
- cout<<pow(27,1.0/3.0)<<endl;
- cout<<"a (x1, y1) = "<<endl;
- cin>>x_1>>y_1;
- cout<<"b (x2, y2) = "<<endl;
- cin>>x_2>>y_2;
- d = sqrt(pow(x_2-x_1,2)+pow(y_2-y_1,2));
- cout<<d<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement