Advertisement
social1986

Untitled

Nov 3rd, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _01.Resurrection
  4. {
  5. public class Program
  6. {
  7. public static void Main()
  8. {
  9. var n = int.Parse(Console.ReadLine());
  10.  
  11. for (int i = 0; i < n; i++)
  12. {
  13. var bodyLength = int.Parse(Console.ReadLine());
  14. var bodyWidth = double.Parse(Console.ReadLine());
  15. var wingLength = int.Parse(Console.ReadLine());
  16. long totalWingLength = 2 * wingLength;
  17.  
  18. var reincarnateTime = Math.Pow(bodyLength, 2) * (bodyWidth + totalWingLength);
  19. Console.WriteLine($"{reincarnateTime}");
  20. }
  21. }
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement