Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class ConsoleTests
- {
- static void Main()
- {
- double first = double.Parse(Console.ReadLine());
- double second = double.Parse(Console.ReadLine());
- ReturnHypotenuse(first,second);
- }
- static void ReturnHypotenuse(double a, double b)
- {
- Console.WriteLine(Math.Sqrt(a * a + b * b));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement