//Use this one is somewhat similar
#include <iostream>
#include<iomanip>
using namespace std;

double fact (int f); //declaration of factorial function
double power(double x, int y);...