Showing posts with label Console C#. Show all posts
Showing posts with label Console C#. Show all posts

Friday, February 24, 2023

Console.writeline c# String interpolation

String interpolation

with use of $ in console.writeline we can add {} brackets.

int a=5;      

console.write line($"hello {a}")

Wednesday, October 27, 2021

Create simple hello world program in Dot Net(C#)

 using System;


namespace ConsoleApp1

{

    class Program

    {

        static void Main(string[] args)

        {

            Console.WriteLine("Hello World!");

        }

    }

}