python
Dashboard
My Repos
Compilers
Python Online
Node JS Online
Golang Online
codepy
Login
My Repos
Sign Out
Online Python Interpreter
Stop
Run
#include <iostream> using namespace std; double power(double n,int p=2); int main(int argc, char const *argv[]) { double n,r; int p; char c; //clrscr(); cout<< "enter the number:"; cin>>n; do { cout<<"do you want to enter power(y/n)?:"; cin>>c; if(c=='y') { cout<<"enter the power to be raised:"; cin>>p; r=power(n,p); } else { if(c=='n') {
Share this code with others
Public
Clear
My Repos
Repo
Lang
Login
Register
Login
Create a free account. No Credit card info required.
I agree with the Codepy
Term of Service
Sign Up