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 dimensions can an array have?
what is the meaning of Object lifetime in OOPS
Is c# dictionary a hash table?
Does a class need a constructor c#?
What is data bind in c#?
How do I stop my console from closing in c#?
Can You Prevent Your Class From Being Inherited By Another Class?
What is Implementation inheritance and interface inheritance?
Is versioning applicable to private assemblies?
What is msil, and why should developers need an appreciation of it if at all?
Hello.. This is kali prasad. i wish to learn C#. kindly guide me in making me expert in c#.
What is action in c# 3.5?
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)