Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Numeric;
- namespace SoftUni_Homework_1_4
- {
- class Program
- {
- static double CalculateHypotenuse (double c1, double c2)
- {
- return Math.Sqrt(Math.Pow(c1, 2) + Math.Pow(c2, 2));
- }
- static void Main(string[] args)
- {
- uint[,] Catheti_Pairs = new uint[,] { { 3, 4 }, { 10, 12 }, { 100, 250 } };
- for (int i = 0; i < Catheti_Pairs.GetLength(0); i++)
- {
- Console.WriteLine(CalculateHypotenuse(Catheti_Pairs[i, 0], Catheti_Pairs[i, 1]).ToString());
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement