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

Restrict File Upload by File Type in Oracle Apex

If you want to restrict file upload by file type/extension/format you can follow the below steps.  Goto File Browser Item --> Advanced --...