This is part of a small project we're doing and I get stuck in this part when executing the original program. Changing the values to be integers seems to solve it but I need them as rational numbers. I really don't understand what I'm doing wrong.
void main()
{
float potencia;
printf("\nInsira a potencia contratada (em kVA):");
scanf_s("%f", &(potencia));
while (potencia != 3.45 || potencia != 4.6 || potencia != 5.75 || potencia != 6.9 || potencia != 10.35 || potencia != 13.8 || potencia != 17.25 || potencia != 20.7);
{
printf("\nPotencia inserida nao disponivel, insira uma das seguintes: 3.45, 4.6, 5.75, 10.35, 13.8, 17.25, 20.7 ");
scanf_s("%f", &(potencia));
}
}