public static void Main()
Console.WriteLine(GetDegree(10, 10));
Console.WriteLine(GetDegree(1, 30));
Console.WriteLine(GetDegree(6, 30));
public static decimal GetDegree(int akrep, int yelkovan)
const decimal totalDegree = 360;
const decimal totalHours = 12;
const decimal totalMinutes = 60;
const decimal akrepDegree = totalDegree / totalHours;
const decimal yelkovanDegree = totalDegree / totalMinutes;
const decimal akrepDegreeDependingOnYelkovanForMinute = totalDegree / totalHours / totalMinutes;
decimal preciseDegreeChangeForAkrep = akrepDegreeDependingOnYelkovanForMinute * yelkovan;
decimal degreeDifference = Math.Abs(((akrepDegree * akrep) + preciseDegreeChangeForAkrep) - (yelkovanDegree * yelkovan));