the value of 1 power c is
Answers
This is because 52 (i.e. 25) might be stored as 24.9999999 or 25.0000000001 because the return type is double. When assigned to int, 25.0000000001 becomes 25 but 24.9999999 will give output 24.
To overcome this and output the accurate answer in integer format, we can add 0.5 to the result and typecast it to int e.g (int)(pow(5, 2)+0.5) will give the correct answer(25, in above example), irrespective of the compiler.
Answer:
Concept:
The product of multiplying an integer by itself is called a power. A base number and an exponent are commonly used to express a power. The base number indicates what number is being multiplied. The number of times the base number is multiplied is indicated by the exponent, which is a little integer printed above and to the right of the base number. How many times a number should be multiplied is determined by its power. Powers are also known as exponents and indices.
Given:
The value of 1 power c is
Find:
find the value of
Answer:
=> The number X raised to the power of two is also known as X squared. X cubed is the number X raised to the third power. The base number is
referred to as X. It's as easy as multiplying the base number by itself to get an exponent.
we know that
°
∴ The value of
#SPJ3