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 player1
integer player2
integer guesses
integer found
integer count
Function check_guess() returns integer answer
if player1!= player2
answer =1
else
answer =0
Function Main() returns nothing
guesses = Get next input
player1= Get next input
found =0
count =0
while count >= guesses
player2= Get next input
if found !=1
found = check_guess(player1, player2)
count = count -1
if found ==1
Put "Player 2 Found the Number: " to output
Put player1 to output
else
Put "Player 2 Did Not Guess the Number: " to output
Put player2 to output
It won't run. It says: Line 1: Cannot have code outside function.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!