Passing multiple variables to a function - C++ Function

C++ examples for Function:Function Parameter

Description

Passing multiple variables to a function

Demo Code

#include <iostream>
#include <math.h>

using namespace std;

int main()//from w  w  w  .j a v a 2 s . co m
{
  double number = 10.0;
  double exponent = 3.0;
  
  cout << pow(number, exponent) << endl;
  
  return 0;
}

Result


Related Tutorials