SHARE
TWEET

Untitled

a guest Sep 18th, 2019 99 in 3 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. namespace Pluralize
  2. {
  3.     public static class PluralizeTask
  4.     {
  5.         public static string PluralizeRubles(int count)
  6.         {
  7.             if ((count % 10 == 1) && (count % 100 != 11)) return "рубль";
  8.             if ((count % 100 == 12) || (count % 100 == 13) || (count % 100 == 14)) return "рублей";
  9.             if (1 < (count % 10) && (count % 10) < 5) return "рубля";
  10.             return "рублей";
  11.         }
  12.     }
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top