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 |
How C# 4.0 supports dynamic programming language?
What is integer c#?
What can I create with c#?
Can we change static value in c#?
What is sealed class in c#?
What is inheritance in csharp?
What happens if the inherited interfaces have conflicting method names?
What is .dbml file?
What is difference between const and static in c#?
Can you store multiple data types in System.Array?
20 Answers Satyam, Siebel Systems,
What is the difference between a constant and a static readonly field?
What is the difference between ref & out parameters?