public static int summationOfNaturalNumbers(int num) { return (1 + num) * num / 2; }
Sign in to make a reply
君似梦逍遥