LEARN DOT NET

Console Example

      using System;
      using System.Collection.Generric;
      using System.Linq;
      using System.Text;
      using System.Threading.Tasks;

      namespace ConsoleApplicatoin1
      {
      class Program
      {
      static void Main(string[ ] args)
      {
      //this is Declaration part
      int a,b,c;
      Console.wrileLine("Enter A value");
      //the below statement reads the string using console.readLine() function after that Integer.parseInt converts to //integer
      a=Integer.parseInt(console.readLine());
      Console.wrileLine("Enter B value");
      b=Integer.parseInt(console.readLine());
      c=a+b;
      //out put we can show two ways 1 is
      console.writeLine("A=" + a + " B=" + b + " C=" + c);
      //2 is  that's meaning o th parameter, 1st parameter 2nd parameter 
      console.writeLine("A={0} B={1} c={2}",a,b,c)
      //we can use any one way to give the out put in Console screen
      }
      }
      }