I have a problem making the rest of the room. You gave this error:
value required as left operand of assignment
How do I resolve this?
#include <stdio.h>
#include <stdlib.h>
int main()
{
int x;
printf("informe o numero inteiro: \n");
scanf("%d",&x);
if (x>0)
{
printf("numero positivo ");
}
else {
printf("numero negativo ");
}
if (x % 2 = 0)
{
printf("e par");
}
else {
printf("e impar");
}
return 0;
}