Advertisement
Guest User

Untitled

a guest
May 21st, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. float x_1, y_1, x_2, y_2, d;
  7.  
  8. int main()
  9. {
  10. cout<<cbrt(27)<<endl;
  11. //operacje pierwiaastkowaiania mozemy zasstapic operacja potegowania
  12. cout<<pow(27,1.0/3.0)<<endl;
  13.  
  14. cout<<"a (x1, y1) = "<<endl;
  15. cin>>x_1>>y_1;
  16. cout<<"b (x2, y2) = "<<endl;
  17. cin>>x_2>>y_2;
  18.  
  19. d = sqrt(pow(x_2-x_1,2)+pow(y_2-y_1,2));
  20. cout<<d<<endl;
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement