1.22 LAB: Variables/Assignments: Using math functions
Given three floating-point numbers x, y, and z, output x^y, x^(y^z), the absolute value of x, and the square root of ((x * y)^z).
Output all results with five digits after the decimal point, which can be achieved as follows: Put result to output with 5 decimal places
Ex: If the input is:
5.0 2.5 1.5
the output is:
55.90170 579.32402 5.00000 6.64787
Hint: Coral has built-in math functions (discussed elsewhere) that may be used.
LAB ACTIVITY
1.22.1: LAB: Variables/Assignments: Using math functions
Variables
Not shown when editing
Input
Code
Flowchart