Using system
Class Example
{
private void himanshu()
{
int starting=10;
int returned =Docalculation(starting);
}
private int Docalculation(int receiving)
{
int multip=receiving *2;
return multip;
}
static Void Main()
{
example ex=new example()
ex.Docalculation();
}
}

There are some capitalization errors. C# is case sensitive. If you have any more problems, please post the error you're getting and any relevant information.

Try this himanshu handsome:

using System;
class example
{
    private void himanshu()
    {
        int starting = 10;
        int returned = docalculation(starting);
        Console.WriteLine(returned);
    }

    private int docalculation(int receiving)
    {
        int multip=receiving * 2;
        return multip;
    }

    static void Main()
    {
        example ex = new example();
        ex.himanshu();
    }
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.