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