C샵 max()

1 개요[ | ]

C# max()
using System;
using System.Linq;
class Program {
    static void Main() {
        int[] nums = {3, 6, 2, 8, 1};
        Console.WriteLine( nums.Max() ); // 8
    }
}
using System;
using System.Linq;
class Program {
    static void Main() {
        double[] nums = {3.14, 77.7, 5, -10.5, -4.4};
        Console.WriteLine( nums.Max() ); // 77.7
    }
}

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}