public static void Main()
Random rnd = new Random();
Console.WriteLine(TimeToString(rnd.Next(0,1000),"минут","а","ы"));
static string TimeToString(int N, string S, string s1="", string s2="", string s3="")
int x1,x2, n = N<0?N*-1:N;
if ((x1 >= 5 && x1 <= 20) || (x2 >= 5 && x2 <= 9) || x2== 0)