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 is the difference between paramaterized constructor and copy constructor?
What is thread and explain states of a thread in c#?
Name the control which cannot be placed in mdi?
How do I count the length of a string in c#?
How to make a class non-inheritable other than sealed?
What is property c#?
What is a thread? What is multithreading?
What is namespace c#?
without modifying source code if we compile again, will it be generated MSIL again?
What is the difference between int.Parse() and Convert.toInt32().
Can abstract class have parameterized constructor?
What is instantiating a class?