Write a functin to add two no. Both no can be int, float.
Answers were Sorted based on User's Feedback
Answer / mithun
public double Add(double a, double b)
{
double c =a + b;
return c;
}
Is This Answer Correct ? | 13 Yes | 1 No |
public int fname(int a,int b)
{
int c;
c=a+b;
messagebox.show("answer"+c);
}
Is This Answer Correct ? | 5 Yes | 11 No |
Answer / aaaa
public int fname(int a,int b)
{
int c;
c=a+b;
messagebox.show("answer"+c);
return(c);
}
Is This Answer Correct ? | 1 Yes | 8 No |
What are the two uses of a ‘using’ statement in c#?
What is the use of main method in c#?
Why constructor is used in c#?
Why is it efficient to use System.string under System.Text.StringBuilder ?
Why singleton is sealed?
Hi!!! my question is how we can apply or do Themes in C#.NET? please any sample or website from where i can get the answer.
Can we override interface method?
What is foreach loop in c#?
is it possible to inherit a class but methods declared in the class should not be inheritable i possible how?
Is there a way of specifying which block or loop to break out of when working with nested loops?
What is a proxy of the server object in .NET Remoting?
What is the difference between method and constructor in c#?