Advertisement
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) {
- double r;
- r = sqrt((x*x)+(y*y));
- return r;
- }
- int main() {
- double a, b, d;
- cin >> a >> b;
- d = dist_or(a,b);
- cout << d << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement