Horje
how to use power in c++ Code Example
how to use power in c++
// CPP program to illustrate
// power function
#include <bits/stdc++.h>
using namespace std;
 
int main()
{
    double x = 6.1, y = 4.8;
 
    // Storing the answer in result.
    double result = pow(x, y);
 
    // printing the result upto 2
    // decimal place
    cout << fixed << setprecision(2) << result << endl;
 
    return 0;
}




Cpp

Related
add arbitrum to metamask Code Example add arbitrum to metamask Code Example
3 conditions for a while loop c++ Code Example 3 conditions for a while loop c++ Code Example
Palindrome String solution in c++ Code Example Palindrome String solution in c++ Code Example
operator overloading outside class Code Example operator overloading outside class Code Example
MPI_Sendrecv Code Example MPI_Sendrecv Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11