Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var
- a,b,c,d:longint;
- begin
- readln(a,b,c);
- if (a+b=c) or (a*b=c) then d:=1
- if (a+b=c) and(a*b=c) then d:=0;
- writeln(d);
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement