コード例 #1
0
        public HailstoneInformation ComputeHailstoneInformation(long input)
        {
            var hn    = ComputeHailstoneNumber(input);
            var model = new HailstoneInformation(input, hn, generator.GenerateSequence(input));

            return(model);
        }
コード例 #2
0
        public HailstoneInformation ComputeHailstoneInformation(long input)
        {
            var hailstoneNumber = ComputeHailstoneNumber(input);
            var sequence        = GenerateSequence(input);
            var result          = new HailstoneInformation(input, hailstoneNumber, sequence);

            return(result);
        }