Everytime the code runs, it asks 1 time at first and then asks twice for the character input, i am pretty new to programming
I tried using while, but i had the same result, i cant spot my mistake
#include <stdio.h>
#include <stdlib.h>
int main()
{
system("cls");
int contador;
int caracterA=0;
int otrosCaracteres=0;
char ingresoCaracteres;
for(contador=0;contador<=5;contador++)
{
printf("\n Ingrese caracteres");
scanf("%c",&ingresoCaracteres);
contador++;
}
if(ingresoCaracteres=='a')
{
caracterA++;
}
if(ingresoCaracteres=='e','i','o','u')
{
otrosCaracteres++;
}
printf("Entered a: %d",caracterA);
printf("Entered e,i,o,u: %d",otrosCaracteres);
return 0;
}