1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;
namespace Day01_Homework1 { class HomeWork2 { static void Main(string[] arg) { Console.WriteLine(Math.Max(10,2000)); Console.WriteLine(Math.Min(10, 2000)); Console.WriteLine(Math.Floor(-10.9)); Console.WriteLine(Math.Round(10.89459, 2)); Console.WriteLine(Math.Ceiling(2000.00)); Console.WriteLine(Math.Sqrt(100)); Console.WriteLine(Math.Abs(10)); Console.ReadLine(); } } }
|