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 many bytes is a char c#?
what is the difference between finally and dispose methods?
How can I get around scope problems in a try/catch?
What is escape sequence in c#?
Should I make my destructor virtual?
What is the difference between static class and singleton class in c#?
Explain the top reason to use c# language?
How does the lifecycle of Windows services differ from Standard EXE?
Explain the difference between access specifier and access modifier in c#?
Is vs as c#?
Who benefits from ajax?
How can you clean up objects holding resources from within the code?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)