asked 234k views
1 vote
Using the same algorithm:

• Start with a number and add 2 to it.
Double the result.
• Subtract 3 from that quantity.
If the function outputs a value of 21, what was the value of the input?

2 Answers

4 votes

Answer:

• let the number be x:


• { \tt{ \dashrightarrow \: 2(x + 2)}}


• \dashrightarrow{ \tt{2x + 1}}


• \dashrightarrow{ \tt{ 2x + 1 = 21}} \\ \\ { \tt{2x = 20}} \\ \\ • \: { \boxed{ \tt{output : \: \: x = 10 \: \: }}}

answered
User Dotnethaggis
by
7.5k points
2 votes

Let input be x


\\ \bull\tt\dashrightarrow 2(x+2)-3=21


\\ \bull\tt\dashrightarrow 2(x+2)=21+3


\\ \bull\tt\dashrightarrow 2(x+2)=24


\\ \bull\tt\dashrightarrow x+2=(24)/(2)


\\ \bull\tt\dashrightarrow x+2=12


\\ \bull\tt\dashrightarrow x=12-2


\\ \bull\tt\dashrightarrow x=10

answered
User Josh Barker
by
8.1k points

No related questions found

Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.