// Prueba enupal.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
#include "conio.h"
#include <string>
#include <math.h> 

using namespace std;

int suma(int n[7])
{
		int suma = 0;
		for (int i = 0; i < 7; i++)
		{
				suma += n[i];
		}

		return suma;
}

void imprimir(int mensaje)
{
		cout << "\t*****" << mensaje << "********" << endl;
}


int main()
{
		int valor = 20;
		int notas[7] = {15, 25};
		int totalSuma;
		float promedio;

		notas[2] = 20;

		for (int i = 2; i < 7; i++)
		{
				cout << "Ingrese nota: " << i << endl;
				cin >> notas[i];
		}

		totalSuma = suma(notas);
		promedio = totalSuma / 7;
	
		cout << "El promedio es: " << promedio;
		
		_getch();
		return 0;
}