Write a functin to add two no. Both no can be int, float.

Answer Posted / mithun

public double Add(double a, double b)
{
double c =a + b;
return c;
}

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between variable and property in c#?

616


What is yield c#?

644


What is a scope in c#?

648


Different between method overriding and method overloading?

663


Can we override static class in c#?

643


Is list ienumerable c#?

788


What is a class in unity?

660


In which situation(s), the use of "Delegate" is a good idea?

742


How Reflection is used and what it's significance ?

704


What is the difference between firstordefault and singleordefault?

670


What is the implicit name of the parameter that gets passed into the set method/property of a class?

696


Explain the different ways a method can be overloaded?

637


What is msil, and why should developers need an appreciation of it if at all?

798


Can class be protected in c#?

687


What is the difference between an application domain and a process?

681