NedyalkoKikov

SearcchingInStrings

May 15th, 2016
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace SearchingInString
  8. {
  9. class SearcchingInStrings
  10. {
  11. static void Main()
  12. {
  13. string wordInput = "C# Programming Course";
  14. int index = wordInput.IndexOf("Course");
  15. Console.WriteLine(index);
  16. int index1 = wordInput.IndexOf("Programming");
  17. Console.WriteLine(index1);
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment