Advertisement
dyamondz

Distància a l'origen - X04437

Oct 17th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.13 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. double dist_or(double x, double y){
  6.     return sqrt(pow(x,2)+pow(y,2));
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement