Files
basic-computer-games/25_Chief/csharp/Math.cs
2022-04-16 17:24:32 +10:00

18 lines
436 B
C#

using static Chief.Resources.Resource;
namespace Chief;
public static class Math
{
public static float CalculateOriginal(float result) => (result + 1 - 5) * 5 / 8 * 5 - 3;
public static string ShowWorking(Number value) =>
string.Format(
Formats.Working,
value,
value += 3,
value /= 5,
value *= 8,
value = value / 5 + 5,
value - 1);
}