What is wrong with this program? 100 PRINT "WHAT NUMBER DO YOU WANT SQARE ROOTED UNTIL…
- User
What is wrong with this program?
100 PRINT "WHAT NUMBER DO YOU WANT SQARE ROOTED UNTIL IT REACHES 1" 110 INPUT X# 120 PRINT "GUESS THE NUMBER OF TIMES IT TAKES FOR IT TO REACH 1" 130 INPUT G 140 N#=X# 150 X#=SQR(X#) 160 K=K+1 170 IF X#>1 THEN GOTO 150 180 IF K=G THEN GOTO 210 190 PRINT "IT TOOK " K " TO REACH 1" 200 END 210 PRINT"RIGHT" 220 END
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.