hi people i have so much error with if statment
when i compile the following source
Code:
# include <stdio.h>
int main ()
{
int c;
int d;
printf (" enter the number do you like \n ");
scanf ("%d%d",&c,&d);
if ( c == d ) {
printf (" equal");
}
If ( c < d ) {
printf (" not the same numbers \n");
}
if ( c > d) {
printf (" not the same numbers \n");
}
if ( c! = d) {
printf (" huh what are you typing \n");
}
return 0;
}
it show this errors
if.cpp: In function `int main()':
if.cpp:5: error: syntax error before `int'
if.cpp:7: error: `d' undeclared (first use this function)
if.cpp:7: error: (Each undeclared identifier is reported only once for each function it appears in.)
if.cpp:11: error: `If' undeclared (first use this function)
if.cpp:11: error: syntax error before `{' token
what should do i ?