bor

Lena: Hypot

bor
Jul 10th, 2013
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <cmath>
  4. using namespace std;
  5.  
  6. int main() {
  7.   int a, b;
  8.   cin >> a >> b;
  9.   cout << sqrt(a * a + b * b) << endl;
  10.   return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment