Answer:
I'm unsure of what language you are referring to, but the explanation below is in Python.
Explanation:
a = int(input("Input your first number: "))
b = int(input("Input your second number: "))
c = int(input("Input your third number: "))
maximum = max(a, b, c)
print("The largest value: ", maximum)
Answer:
The answer is "Option C".
Explanation:
Relational expression are one or more variable and maybe even values, which operators have linked together. It is also known as the process, which is used to calculate the outcome, that is generated by the relational expression. These words are typically designed to answer the questions in boolean values, and other options were not correct, that can be described as follows:
- In option A, This process is used to perform the mathematical operation, that's why it is not correct.
- Option B and Option D both is used to compare values, that's why it is not correct.
To accomplish this without using a loop,
we can use math on a string.
Example:
print("apple" * 8)
Output:
appleappleappleappleappleappleappleapple
In this example,
the multiplication by 8 actually creates 8 copies of the string.
So that's the type of logic we want to apply to our problem.
<span>def powersOfTwo(number):
if number >= 0:
return print("*" * 2**number)
else:
<span>return
Hmm I can't make indentations in this box,
so it's doesn't format correctly.
Hopefully you get the idea though.
We're taking the string containing an asterisk and copying it 2^(number) times.
Beyond that you will need to call the function below.
Test it with some different values.
powersOfTwo(4) should print 2^4 asterisks: ****************</span></span>
When it is shining it is precious. When it is normal it is accurate.
Please make as brainliest please please