0
When I type any value other than 2 equal values, the "Invalid typed value!" message is displayed anyway. Anyone knows why?
#include <stdio.h>
#include <conio.h>
int main(){
int x, y;
printf("Digite 2 valores: ");
scanf("%d %d", &x, &y);
if(x>y)
printf("O valor %d eh maior que %d", x, y);
if(x<y)
printf("O valor %d eh menor que %d", x, y);
if(x==y)
printf("O valor %d eh igual ao valor %d", x, y);
else
printf("Valor digitado invalido!");
getch();
return 0;
}