Pages

Write a function in C++ to add two numbers using function.

Monday, 13 May 2013

#include <iostream>
using namespace::std;
inline
int add(int , int);
int main()
{
    int a, b;
    cin>>a>>b;
    cout<<add(a, b)<<endl;
    system("pause");
}
int add(int a, int b)
{
    return a+b;
}
 

Search Box

Most Reading

Contact Form

Name

Email *

Message *