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 304 views
1 answer 291 views
1 answer 290 views
1 answer 270 views
1 answer 285 views
1 answer 257 views
257 views asked Dec 31, 2016 by avibootz
...