Problem

Four lines of pseudocode are given. Number = input "Enter a number" StepOne $=$ Number $\wedge 2$ StepTwo $=3 *$ Stepone -4 display StepTwo Based on these lines of code, which number should be displayed when the input number is 5 ? 24 26 63 71

Solution

Step 1 :Number = 5

Step 2 :StepOne = 5^2 = 25

Step 3 :StepTwo = 3 * 25 - 4 = 71

Step 4 :\(\boxed{71}\)

From Solvely APP
Source: https://solvelyapp.com/problems/15454/

Get free Solvely APP to solve your own problems!

solvely Solvely
Download