Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main()
- {
- double fieldGoals = double.Parse(Console.ReadLine());
- double FielGoalsAttempts = double.Parse(Console.ReadLine());
- double ThreePointGoals = double.Parse(Console.ReadLine());
- double turnouvers = double.Parse(Console.ReadLine());
- double OffensivaRedBounds = double.Parse(Console.ReadLine());
- double ooP = double.Parse(Console.ReadLine());
- double FreeThrows = double.Parse(Console.ReadLine());
- double freeThrowAttempts = double.Parse(Console.ReadLine());
- double eFG = (fieldGoals + (0.5 * ThreePointGoals)) / FielGoalsAttempts;
- double tOV = turnouvers / (FielGoalsAttempts + 0.44 * freeThrowAttempts + turnouvers);
- double oRB = OffensivaRedBounds / (OffensivaRedBounds + ooP);
- double factorResult = FreeThrows / FielGoalsAttempts;
- Console.WriteLine("eFG% {0:F3} ", eFG);
- Console.WriteLine("TOV% {0:F3} ", tOV);
- Console.WriteLine("ORB% {0:F3} ", oRB);
- Console.WriteLine("FT% {0:F3} ", factorResult);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement