Write a functin to add two no. Both no can be int, float.

Answers were Sorted based on User's Feedback



Write a functin to add two no. Both no can be int, float...

Answer / mithun

public double Add(double a, double b)
{
double c =a + b;
return c;
}

Is This Answer Correct ?    13 Yes 1 No

Write a functin to add two no. Both no can be int, float...

Answer / gopathi vamseedhar

public int fname(int a,int b)
{
int c;
c=a+b;
messagebox.show("answer"+c);
}

Is This Answer Correct ?    5 Yes 11 No

Write a functin to add two no. Both no can be int, float...

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

Post New Answer

More C Sharp Interview Questions

What is binding in c#?

0 Answers  


What?s the difference between System.String and System.StringBuilder classes?

1 Answers  


What is a dll in c#?

0 Answers  


What is parameterized constructor?

0 Answers  


What is token in c#?

0 Answers  


what is read only and constant

8 Answers   FIC, IBM,


What is file extension of webservices?

0 Answers  


What are custom exceptions in C#?

0 Answers   Arigo Infotech,


Explain namespaces in c#.

0 Answers  


What are types of constructor?

0 Answers  


Write a program to find the angle between the hours and minutes in a clock

0 Answers  


How to generate strong name key file or which command is used to generated strong name key file?

0 Answers   CitiusTech,


Categories