Search This Blog

Monday, May 30, 2016

C# Starting Hello World

### Open Visual Studio and click on *File option take a * New Project then select *Visual C# and *Console Application .

HELLO WORLD  OF C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("hallo world");
        }
    }
}


SUM WITH TOW VARIABLE IN C#



using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int a , b , c;
string s;
s = Console.ReadLine();
a = int.Parse(s);
s = Console.ReadLine();
b = int.Parse(s);
c = a + b;

Console.WriteLine("valu of c : "+c);


}
}
}

No comments:

Post a Comment

Check Difference Between Two Database Objects

Step-1. Create Two DBLINK to connect with Two Database then Step-2. define logindb= DBLINKONE define remotedb= DBLINKTWO define schema_name=...