Which of the following set of instructions defines an algorithm in the formal, strict sense?

A. x = 3 while(x < 5) do (x <-- x)
B. x = 3 while(x < 5) do (x <-- x + 1)
C. x = 3 while(x < 5) do (x <-- x - 1)

Respuesta :

Hope that understands
Ver imagen GUANLUPE
Lanuel

The set of instructions that defines an algorithm in the formal, strict sense is: B. x = 3; while(x < 5) do (x <-- x + 1).

What is an algorithm?

An algorithm can be defined as a standard formula (procedures) which comprises a set of finite steps and instructions that is used for proffering solutions to a problem on a computer under appropriate conditions.

In this scenario, the set of instructions that defines an algorithm in the formal, strict sense is given by this syntax:

x [tex]\leftarrow[/tex] 3;

while (x < 5) do

(x [tex]\leftarrow[/tex] x + 1)

Read more on algorithm here: brainly.com/question/24793921

Otras preguntas