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

Split A String By Coma (,)

Step 1.  create or replace type split_tbl as table of varchar2(32767); Step 2. create or replace function split (     p_list varchar2,...