#include <iostream>
using namespace std;
 
int add (int a, int b)
{
  int r;
  r=a+b;
  return (r);
}
 
int main ()
{
  int z;
  //calling statement to the function.
  z = add(5,3);
  cout << "The result is " << z;
  return 0;
}
Creative Commons License Valid CSS Valid XHTML 1.0 Driven by DokuWiki Powered by PHP Powered by Apache get firefox!! kgareth.com Recent changes RSS feed