Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class MutantSquirrels
- {
- static void Main()
- {
- double Trees = double.Parse(Console.ReadLine());
- double Branches = double.Parse(Console.ReadLine());
- double Squirrels = double.Parse(Console.ReadLine());
- double AverageTails = double.Parse(Console.ReadLine());
- double TotalTails = Trees * Branches * Squirrels * AverageTails;
- if (TotalTails % 2 == 0)
- {
- TotalTails *= 376439;
- Console.WriteLine("{0:F3}", TotalTails);
- }
- else
- {
- TotalTails /= 7;
- Console.WriteLine("{0:F3}", TotalTails);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement