int cubedNumber = cube(5); Console.WriteLine(cubedNumber); Console.ReadLine(); static int cube(int num) { int result = num * num * num; return result; }