Last active
March 31, 2022 16:24
-
-
Save kawzar/c06e133cec11f38558dcb3c35746d204 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void parcial(Auto* arreglo, int longitud) { | |
int antiguedades[longitud]; | |
int anioActual = 2021; | |
int promedioAntiguedades = 0; | |
for(int i = 0; i < longitud; i++) { | |
antiguedades[i] = anioActual - arreglo[i].anio; | |
promedioAntiguedades = promedioAntiguedades + antiguedades[i]; | |
} | |
printf(promedioAntiguedades) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment