Respuesta :
A function is simply a "chunk" of code that you can reuse repeatedly rather than having to write variables several times.
What is variables?
A variable is a value in programming that is subject to change based on external factors or data that has been passed into the program. A program typically consists of data that it uses while running and instructions that specify what to do to the computer.
Constants, or fixed values, are values that never change, while variables, which are initialized to "0" or another default value because the program's user will supply the actual values, are values that can change. The definition of a data type typically includes both variables and constants. Each data type has restrictions on the data's form.
A decimal representation of an integer or a string of text characters with a set maximum length are examples of data types.
a function call to convertmoney() to store the number of dimes, nickels, and pennies within the integer variables numdimes, numnickels, and numpennies, respectively.
#include <iostream>
using namespace std;
int ConvertMoney(int n)
{
  int temp = n;
  int dimes = temp/10;
  int remain = temp%10;
  int nickel = remain/5;
  int penny = remain%5;
  cout<<"Dimes:"<<dimes<<endl;
  cout<<"Nickels:"<<nickel<<endl;
  cout<<"Pennies:"<<penny<<endl;
  return 0;
}
int main()
{
  int amount;
  cout<<"Enter the amount  :";
  cin>>amount;
  ConvertMoney(amount);
  return 0;
}
Learn more about function
https://brainly.com/question/20476366
#SPJ4