diff --git a/Emne 3/ConsoleApp10HvaGjørKoden/Program.cs b/Emne 3/ConsoleApp10HvaGjørKoden/Program.cs index 1f94dea..4a21952 100644 --- a/Emne 3/ConsoleApp10HvaGjørKoden/Program.cs +++ b/Emne 3/ConsoleApp10HvaGjørKoden/Program.cs @@ -20,7 +20,7 @@ while (!string.IsNullOrWhiteSpace(text)) var character = (char)i; var percentage = 100 * counts[i] / totalLetters ; // string output = counts[i] + " - " + character + " - " + percentage + "%"; - Console.WriteLine(String.Format("{0,0} - {1,1} - {2,2}%", counts[i], character, percentage)); + Console.WriteLine(String.Format("{0,-3} - {1,1} - {2,2}%", counts[i], character, percentage)); } } } \ No newline at end of file