lines 13 and 14 are in reverse order. The { goes after the while statement, not before.
line 28 -- break -- is wrong because it is not inside any loop where a break is valid.
Here is how the function should work
top of loop
enter variable x1
enter variable x2
are x1 and x2 the same and negative
yes, then exit the loop
multiply x1 * x2
end of loop
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Offline 21,950 posts
since Aug 2005