- 2

What is the answer on question 56 lesson 1 c#

I dont knoww

28th Aug 2021, 6:49 AM
Brando jr. Sanchez
Brando jr. Sanchez - avatar
11 Réponses
+ 4
The array after revessing it will be arr=[4,5,8] Then we will calculate the pow function to the number in the first index of our array which equal to 4 So the answer will be Double x= Math.pow(4,2) X = 4^2 = 16 The answer is 16
28th Aug 2021, 7:09 AM
Muhammad Galhoum
Muhammad Galhoum - avatar
+ 2
Copy and paste your question here
28th Aug 2021, 6:59 AM
Muhammad Galhoum
Muhammad Galhoum - avatar
+ 2
You're welcome Brando jr. Sanchez 😊
28th Aug 2021, 7:11 AM
Muhammad Galhoum
Muhammad Galhoum - avatar
+ 1
Please put your question and your attempt for solving it and in this case we can help you
28th Aug 2021, 6:55 AM
Muhammad Galhoum
Muhammad Galhoum - avatar
+ 1
Why should anyone put any effort into helping you when you put no effort whatsoever into asking?
28th Aug 2021, 6:59 AM
Simon Sauter
Simon Sauter - avatar
+ 1
Brando jr. Sanchez Try to understand what each line is telling you. 1. int[] arr {8,5,4}; means an array called arr has been created with 3 items. arr[0] = 8 arr[1] = 5 arr[2] = 4 2. Array.Reverse(arr); means the order of the items within arr has been reversed arr[0] = 4 arr[1] = 5 arr[2] = 8 3. Double x = Math.Pow(arr[0],2); means that a variable of type Double has been created. This variable is called x, and the value assigned to it is Math.Pow(arr[0],2) We know that arr[0] = 4, so we could read: x = Math.Pow(4,2); Math.Pow() is exponentation, which is the same as saying 4 to the power of 2, or 4 squared or 4x4. See if you can get the answer now
28th Aug 2021, 7:20 AM
Rik Wittkopp
Rik Wittkopp - avatar
0
I see this is the third time you've posted your question. Each time people have made it clear what is required to get help. You're clearly either unwilling or unable to learn You will never be a programmer with this attitude. Come back in few years when you have at least a minimum of intellectual and personal maturiry.
28th Aug 2021, 7:10 AM
Simon Sauter
Simon Sauter - avatar
0
Thank you
28th Aug 2021, 7:10 AM
Brando jr. Sanchez
Brando jr. Sanchez - avatar
- 1
What is the value of x after this code? Int[] arr {8,5,4}; Array.Reverse(arr); Double x = Math.Pow(arr[0],2);
28th Aug 2021, 7:04 AM
Brando jr. Sanchez
Brando jr. Sanchez - avatar
- 1
Please help me im a beginer
28th Aug 2021, 7:05 AM
Brando jr. Sanchez
Brando jr. Sanchez - avatar