Quick actions

cmd+k|ctrl+k

Navigation

Languages

cop-3014

Snippet info

Language

Cpp

Visibility

public

Author

damyl4sure

Created

2023-01-28T18:43:31.41547Z

Updated

2023-01-28T18:43:31.41547Z

#include <iostream>
#include <cmath>
#include <string>
using namespace std;

int main() {
    double u, v;
    string str;
    
    cout << "Line 1: 2 the power of 6 = "
        << static_cast<int> (pow(2.0, 6.0))
        << endl;
        
    u = 12.5;
    v = 3.0;
    cout << "Line4: " << u << " to the power of "
        << v << " = " << pow(u, v) << endl;
        
    return 0;
}
INFO