Code:void additionlevel1menu() { int n1, n2, pcans, userans; int count = 1, mark = 0; do { srand((unsigned int)time(NULL)); n1 = rand() % 10; n2 = rand() % 10; pcans = n1 + n2; printf("%d.%d+%d>", count, n1, n2); scanf("%d", &userans); if { userans == pcans printf("You are right\n"); mark = mark + 5; } else { printf("You are wrong\n"); } count++; } while (count <= 3); printf("Your score is %d", mark); }
it show 12 error whn i run it...can someone hlp me to fix it?i try but failed