+ 1

How do I do C# project 3 words

// Created by Schawnnah using System; using System.Collections.Generic; namespace Code_Coach_Challenge { class Program { static void Main(string[] args) { string[] words = new string[]{ "home", "programming", "victory", "C#", "football", "sport", "book", "learn", "dream", "fun", }; List<string> names = new List<string>(); string letter = Console.ReadLine(); foreach(var t in words ) { if (t.Contains(letter)) { names.Add(t); } } if(names.Count>0) names.ForEach(delegate(String name) { Console.WriteLine(name); }); else Console.WriteLine("No match"); } } } well I am 11 years old

21st Jan 2021, 4:41 PM
CoMpUtOr/ScIeNtiSt
CoMpUtOr/ScIeNtiSt - avatar
3 Réponses
0
Yo I was wondering why when I use console_writeline ("example"). For some reason it says there's an error please help
30th Sep 2022, 1:33 AM
Froxl
Froxl - avatar