Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- double dist_or(double x, double y) {
- x=pow(((x*x)+(y*y)),0.5);
- return x;
- }
- int main(){
- double d1, d2;
- cin >> d1 >> d2;
- cout << dist_or(d1,d2) << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment