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 206 views
1 answer 200 views
1 answer 200 views
1 answer 180 views
1 answer 184 views
1 answer 169 views
169 views asked Dec 31, 2016 by avibootz
...