Question: Fix my errors in this coral code please. integer player 1 integer player 2 integer guesses integer found integer count Function check _ guess (
Fix my errors in this coral code please.
integer player
integer player
integer guesses
integer found
integer count
Function checkguess returns integer answer
if player player
answer
else
answer
Function Main returns nothing
guesses Get next input
player Get next input
found
count
while count guesses
player Get next input
if found
found checkguessplayer player
count count
if found
Put "Player Found the Number: to output
Put player to output
else
Put "Player Did Not Guess the Number: to output
Put player to output
It won't run. It says: Line : Cannot have code outside function.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
