I'm solving college exercises, but I caught myself in one:
The exercise asks me to calculate the even numbers between two integers, and in the end, I do the arithmetic mean between the pairs.
What I've done so far:
int main()
{
int numeroum, numerodois;
printf("Insira dois números pares\n");
scanf("%d", &numeroum);
scanf("%d", &numerodois);
printf("Os pares entre %d e %d são: \n", numeroum, numerodois);
while (numeroum < numerodois) {
printf("%d\n", numeroum);
numeroum = numeroum + 2;
}
printf("A média de todos os números é: %d\n", );
return 0;
}