How to use WriteLine without specifying Console in C#

1 Answer

0 votes
using static System.Console;

namespace ConsoleApplication_C_Sharp
{
     class Program
    {
        static void Main(string[] args)
        {
            WriteLine("c#");
        }
    }
}


/*
run:
 
c#
 
*/

 



answered Aug 6, 2018 by avibootz

Related questions

1 answer 268 views
1 answer 245 views
1 answer 238 views
1 answer 273 views
1 answer 221 views
221 views asked Sep 4, 2020 by avibootz
1 answer 243 views
1 answer 273 views
...