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.Threading.Tasks;
- namespace _01.Resurrection
- {
- class Program
- {
- static void Main(string[] args)
- {
- var n = int.Parse(Console.ReadLine());
- for (int i = 1; i <= n; i++)
- {
- long lengthBody = long.Parse(Console.ReadLine());
- decimal wigthBody = decimal.Parse(Console.ReadLine());
- long length = long.Parse(Console.ReadLine());
- decimal result = (lengthBody * lengthBody) * (wigthBody + (2 * length));
- Console.WriteLine(result);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement