#include <iostream>
using namespace std;
int main() {
int num,s=0,i=0;
bool bandera=true;
float promedio;
cout << "Para terminar ingrese un multiplo de 13" << endl;
while(bandera) {
cout << "Ingrese un numero:";
cin >> num;
if (num % 13 == 0)
bandera = false;
else if (num % 2 == 0) {
s = s + num;
i++;
}
}
promedio = s / (float)i;
cout << "El promedio de los numeros es " << promedio << endl;
return 0;
}