using System;public class Program{ public static int[] SortNumsAscending(int[] arr) { Array.Sort(arr); return arr; }}#задача #ответ
public class Program { public static int DivisibleByB(int a, int b) => a + (b - (a % b));}
using System;using System.Linq;public class Program { public static int getAbsSum(int[] arr) { return arr.Select(Math.Abs).Sum(); }}
using System.Linq;public class Program{ public static string NameShuffle(string str) { return string.Join(" ", str.Split(' ').Reverse()); }}
public class Program { public static int CountDs(string s) { return s.Split('D','d').Length - 1; }}
using System.Linq;public class Program{ public static int[] MultiplyByLength(int[] arr) { var multiplier = arr.Length; return arr.Select(x => x * multiplier).ToArray(); }}
public class Program{ public static string RemoveFirstLast(string str) { return str.Length <= 2 ? str : str.Substring(1, str.Length - 2); }}
public class Program{ public static bool SameCase(string str) { return str==str.ToUpper() | str==str.ToLower(); }}
using System.Linq;public class Program { public static int CountVowels(string str) => str.Count(a=>$"aeiouAEIOU".Contains(a));}
public class Program{ public static string Repetition(string txt, int n) { return n == 0 ? "" : txt + Repetition(txt, n - 1); }}
public class Program { public static int SumPolygon(int num) => (num - 2) * 180; }