How to use static System.Math and static System.Console in C#

1 Answer

0 votes
using static System.Console;
using static System.Math;

namespace ConsoleApplication_C_Sharp
{
     class Program
    {
        static void Main(string[] args)
        {
            WriteLine(Abs(-31));
        }
    }
}


/*
run:
 
31
 
*/

 



answered Aug 6, 2018 by avibootz

Related questions

1 answer 298 views
1 answer 289 views
1 answer 290 views
1 answer 269 views
1 answer 283 views
1 answer 256 views
256 views asked Dec 31, 2016 by avibootz
...