Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- 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();
- bool f=false;
- for(int count=0;count<10;count++){
- if(words[count].Contains(letter)){
- Console.WriteLine(words[count]);
- f=true;
- }
- }
- if(!f)
- Console.WriteLine("No mach");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement