logo

Crowdly

Which of the following code fragments correctly implement the following algorith...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

Which of the following code fragments correctly implement the following algorithm?

  1. Generate a random number as a secret number
  2. Ask the user to guess the number
  3. Convert the guess to an integer
  4. Compare the guess to the secret

    1. If match

      1. print "Congratulations"
    2. If not a match

      1. go to step 2
0%
0%
100%
0%
Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на lms.monashcollege.edu.au?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!