I started out with making this program and figured it would be easier to turn it into a void function, how do I do that. I'm not catching on for some reason. here is my code

Code:
#include <iostream>

using namespace std;

int main()

{
	float A;
	float B;
	float C;
	float D;
	float E;
	float Average;
	float Sum;

	cout << "Please enter the 1st integer ";	
	cin >> A;
	cout << "Please enter the 2nd integer ";	
	cin >> B;
	cout << "Please enter the 3rd integer ";	
	cin >> C;
	cout << "Please enter the 4th integer ";	
	cin >> D;
	cout << "Please enter the 5th integer ";	
	cin >> E;

	Average = A + B + C + D + E;
	Sum = Average / 5;
 
	cout << "The average of the following numbers are " << Sum << endl;	
		 
	return 0;
}