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
Recommended Answers
Jump to PostThere 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.
All 2 Replies
Reply to this topic
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.