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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I download a program to my desktop?

646


What is the real use of interface in c#?

637


What is func c#?

764


what is inheritance and an example in vb.net and c# of when you might use it?

711


How do I unload an application domain?

699


How to find Percentage, name ,College from a resume or document ? How to export these values to other page in C#?

703


Can we instantiate abstract class in c#?

651


Describe the ways of cleaning up objects in c#.

688


Why should I use interface in c#?

708


What is the c# equivalent of c++ catch (...), Which was a catch-all statement for any possible exception?

725


What's the c# syntax to catch any possible exception?

658


Why c# is called c sharp?

646


Can a abstract class have a constructor?

641


Is and as in c#?

654


Can c# inherit multiple classes?

717