Problem

$0: 00 / 0: 28$ 1) : Four lines of pseudocode are given. Number = input "Enter a number" Stepone $=$ Number^ 2 Steptwo $=3 *$ Stepone -4 display Steptwo Based on these lines of code, which number should be displayed when the input number is 5 ?

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/15467/

Get free Solvely APP to solve your own problems!

solvely Solvely
Download