I just started coding in C today, and I haven't been able to figure out what is wrong with this. I am trying to make a "guess the number" game, but I keep getting a syntax error on the "if" line. Could someone please tell me what is wrong with this?
Code:#include <stdio.h>
int main()
{
int correct;
correct=13;
{
int number;
printf ( "Guess a number: ");
scanf( "%d", &number );
return 0;
}
}
if(correct==number)
{
printf("You Win!"
}
else
{
printf("You Lose")
}

