Math.Ceiling()1 [C#] Math 클래스 (Pow, Sqrt, Abs, Round, Ceiling, Floor, Max, Min) using System; namespace MyFirstProgram { internal class Program { static void Main(string[] args) // main method { double xx = 3; double xxx = Math.Pow(xx, 4); Console.WriteLine(xxx); // 81 double yy = Math.Sqrt(Math.Sqrt(xxx)); Console.WriteLine(yy); // 9 double cc = Math.Abs(-123); Console.WriteLine(cc); // 123 double dd = Math.Round(3.14); Console.WriteLine(dd); // 3 double ee = Math.Ceiling(.. 2023. 2. 25. 이전 1 다음 728x90