You are viewing a single comment's thread. Return to all comments →
c#
string s = Console.ReadLine().ToLower().Replace(" ", ""); int[] arr = new int[26]; for (int i = 0; (i < s.Length) && (s.Length >= 26); arr[Convert.ToInt16(s[i]) - 97]++, i++) ; Console.WriteLine(arr.Min() > 0 ? "pangram" : "not pangram");
Seems like cookies are disabled on this browser, please enable them to open this website
Pangrams
You are viewing a single comment's thread. Return to all comments →
c#