How to resolve the algorithm Guess the number/With feedback step by step in the EasyLang programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm Guess the number/With feedback step by step in the EasyLang programming language
Table of Contents
Problem Statement
Write a game (computer program) that follows the following rules:
Let's start with the solution:
Step by Step solution about How to resolve the algorithm Guess the number/With feedback step by step in the EasyLang programming language
Source code in the easylang programming language
print "Guess a number between 1 and 100!"
n = random 100
repeat
g = number input
write g
if error = 1
print "You must enter a number!"
elif g > n
print " is too high"
elif g < n
print " is too low"
.
until g = n
.
print " is correct"
You may also check:How to resolve the algorithm N-queens problem step by step in the Emacs Lisp programming language
You may also check:How to resolve the algorithm Happy numbers step by step in the Tcl programming language
You may also check:How to resolve the algorithm String case step by step in the Frink programming language
You may also check:How to resolve the algorithm Roman numerals/Decode step by step in the MATLAB programming language
You may also check:How to resolve the algorithm Last Friday of each month step by step in the Rust programming language