C++ examples for Function:Function Parameter
Passing a variable to a function
#include <iostream> #include <math.h> using namespace std; int main() //from w w w . ja v a 2 s . com { double start; double finish; start = -3.5; finish = fabs(start); cout << finish << endl; return 0; }