+ 1
49 проект по кодингу(слова) чет немогу понять вывод всех содержащих букву слов могу вывести а как добавить вывод no match
4 Réponses
+ 2
Я вот так сделал
using System;
using System.Collections.Generic;
namespace Code_Coach_Challenge
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] words = {
                "home",
                "programming",
                "victory",
                "C#",
                "football",
                "sport",
                "book",
                "learn",
                "dream",
                "fun"
            };
            string letter = Console.ReadLine();
            int count = 0;
                     
            //ваш код
            foreach (var wordsSearch in words) {            
               
                if (wordsSearch.Contains(letter)) {
                  count++;  
                  Console.WriteLine(wordsSearch);        
                } 
            }
            if (count < 1) {Console.WriteLine("No match");}
        }
    }
}
0
Привет! Нужен код для анализа.
0
Все спасибо разобрался)))
0
Можешь код дать?



