//4.uzdevums
//Console.WriteLine("Ievadiet teksta rindu : n ");
//string text = Convert.ToString(Console.ReadLine()).Trim();// trim atņem atstarpi sākumā un beigās
//int countWords = text.Split().Length;//
//int countSpaces = text.Count(Char.IsWhiteSpace);
//Console.WriteLine(" Teksta rindā ir " + countWords + " vārdi un " + countSpaces + " atstarpes ");
//int sum = 0;
//foreach (char s in text)
//{
// if (char.IsNumber(s))
// {
// sum += ((int)s - 48);
// }
//}
//Console.WriteLine("Teksta rindā sastopamo skaitļu summa ir : " + sum);
//5. uzdevums
//bool a = true;
//bool b = false;
//string word = "TheDonats";
//char[] arr = new char[word.Length];
//for (int i = 0; i < arr.Length; i++)
//{
// arr[i] = '_';
…