I'm starting in C learning and am having trouble with the following code: '
float piValue;
float userAnswerPI;
char userAnswerYN;
piValue = 3.1416;
printf("What's the value of PI?");
scanf("%f", &userAnswerPI);
// Analisando a resposta do valor de PI
if(userAnswerPI !=3.14||userAnswerPI !=3.1416) {
printf("Are you sure?");
scanf(" %c", userAnswerYN);
}
system("pause");
return 0;
' When I add the values 3.14 in the scanf or the value 3.1416, the if is triggered and it was not supposed to happen, please help me: /