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();
}
}
himanshu04 0 Newbie Poster
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.