2.28 LAB: Using math functions Given three floating point numbers x, y, and z. output x to the power of z, x to the power of (y to the power of 2), the absolute value of y, and the square root of (xy to the power of 2) Output each floating point value with two digits after the decimal point, which can be achieved as follows: printf("%0.21f", yourValue); Ex: If the input is: 5.0 6.5 3.2 the output is 172.47 34000294845 LAB ACTIVITY 1 #include 2 #include 3 int main(void) ( 4 5 6 7 B 2.28.1 LAB Using math functions 40449068892160.00 6.50 262.43 double x: double y: double 21 main.c 0/10 Load Cfault template... scanf("%if, X1, X1f", 8x, y, z); printf("%0.211 20.211 %0.211 30.21f", pow(x, z), pow(x, pow(y, 2)), fabs(y), sqrt (pow(x y, z))):
Control structures
Control structures are block of statements that analyze the value of variables and determine the flow of execution based on those values. When a program is running, the CPU executes the code line by line. After sometime, the program reaches the point where it has to make a decision on whether it has to go to another part of the code or repeat execution of certain part of the code. These results affect the flow of the program's code and these are called control structures.
Switch Statement
The switch statement is a key feature that is used by the programmers a lot in the world of programming and coding, as well as in information technology in general. The switch statement is a selection control mechanism that allows the variable value to change the order of the individual statements in the software execution via search.
C language please. I dont know what im doing wrong can someone help?
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images