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 210 views
1 answer 201 views
1 answer 204 views
1 answer 183 views
1 answer 187 views
1 answer 172 views
172 views asked Dec 31, 2016 by avibootz
...