#include<iostream>
#include<math.h>
using namespace std;
int main()
{
int k,j,r,x,y,n;
double M;
cout<<"Enter the value of k: ";
cin>>k;
cout<<"Enter the value of j: ";
cin>>j;
cout<<"Enter the value of r: ";
cin>>r;
cout<<"Enter the value of n: ";
cin>>n;
x=(31*k)+((2*r)/n);
y=pow(x,(2*n));
M= j*y;
cout<<"Value of M is: "<<M;
}
Comments
Leave a comment