I attend 1st grade of Highschool. Recently I had an assignment to do in Turbo Pascal and this happened:
var a,b,x,y,n:integer; begin readln(a,b,x,y); if a<b and x<y then n:=a+y; if a<b and x>y then n:=a+y; if a>b and x<y then n:=b+x; if a>b and x>y then n:=b+x; writeln(n); end.
An Error 57 appeared in the second if row between "y" and "<".
Can someone explain why this happened?
1.4m articles
1.4m replys
5 comments
57.0k users