Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static async void cod()
- {
- string[] hellos = {"hoi", "hey", "hi"};
- string shit = "Oh, hi rarity. You're cute";
- string[] Ashit = shit.Split(' ');
- string[] ashit = shit.ToLower().Split(' ');
- int heypos = -1;
- foreach(string shitword in ashit)
- {
- foreach(string fuckingshit in hellos)
- {
- if(shitword == fuckingshit)
- {
- heypos = Array.IndexOf(ashit, fuckingshit);
- }
- }
- }
- Write(shit + " - " + heypos + " " + ashit[heypos]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement