Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Enter ur text");
- string text = Console.ReadLine();
- Console.WriteLine("Enter a word to search");
- string word = Console.ReadLine();
- if (text.Contains(word)) Console.WriteLine("exist");
- else Console.WriteLine("does not exist");
- Console.Read();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement