Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _01.Resurrection
- {
- public class Program
- {
- public static void Main()
- {
- var n = int.Parse(Console.ReadLine());
- for (int i = 0; i < n; i++)
- {
- var bodyLength = int.Parse(Console.ReadLine());
- var bodyWidth = double.Parse(Console.ReadLine());
- var wingLength = int.Parse(Console.ReadLine());
- long totalWingLength = 2 * wingLength;
- var totalYears = Math.Pow(bodyLength, 2) * (bodyWidth + totalWingLength);
- Console.WriteLine($"{totalYears}");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement