private static StringBuilder sb = new StringBuilder();
private static string GetPercentageRounds(double percentage)
int filled = (int)(percentage * 10);
for (int i = 0; i < 10; ++i)
sb.Append(i < filled ? "🔵" : "⚪");
public static void Main()
Console.WriteLine(GetPercentageRounds(0.0));
Console.WriteLine(GetPercentageRounds(0.1));
Console.WriteLine(GetPercentageRounds(0.5));
Console.WriteLine(GetPercentageRounds(1.0));