Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp9
- {
- class Program
- {
- static void Main(string[] args)
- {
- string noun = Console.ReadLine();
- if (noun.EndsWith("y"))
- {
- noun = noun.Remove(noun.Length - 1);
- Console.WriteLine(noun + "ies");
- } else if (noun.EndsWith("o") || noun.EndsWith("s") || noun.EndsWith("x") || noun.EndsWith("z") || noun.EndsWith("ch") || noun.EndsWith("sh"))
- {
- Console.WriteLine(noun + "es");
- } else
- {
- Console.WriteLine(noun + "s");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement