Fix the Algorithm
Open answerHere is a poorly ordered algorithm for calculating the double of a number: 1) DISPLAY resultat 2) READ n 3) resultat <- n * 2. Rewrite it in the correct order and explain why this order is necessary.
Here is a poorly ordered algorithm for calculating the double of a number: 1) DISPLAY resultat 2) READ n 3) resultat <- n * 2. Rewrite it in the correct order and explain why this order is necessary.