Four Factors -- Задача от изпит 12.July2015
3ащо ми дава последните 2 отговора 0.000 ? Къде бъркам??
using System;
class Program
{
static void Main()
{
uint fieldGoals = uint.Parse(Console.ReadLine());
uint fieldGoalAttempted = uint.Parse(Console.ReadLine());
uint threePointFieldGoals = uint.Parse(Console.ReadLine());
uint turnovers = uint.Parse(Console.ReadLine());
uint offensiveRebounds = uint.Parse(Console.ReadLine());
uint opponentDefensiveRebounds = uint.Parse(Console.ReadLine());
uint freeThrows = uint.Parse(Console.ReadLine());
uint freeThrowAttempts = uint.Parse(Console.ReadLine());
Console.WriteLine("eFG% {0:F3}", (fieldGoals + 0.5 * threePointFieldGoals) / fieldGoalAttempted);
Console.WriteLine("TOV% {0:F3}", turnovers / (fieldGoalAttempted + 0.44 * freeThrowAttempts + turnovers));
Console.WriteLine("ORB% {0:F3}", offensiveRebounds / (offensiveRebounds + opponentDefensiveRebounds));
Console.WriteLine("FT% {0:F3}", freeThrows / fieldGoalAttempted);
}
}