Answer to Question #238076 in C++ for pravinen

Question #238076
  1. M= j(31k + 2r/n)2n
1
Expert's answer
2021-09-16T23:44:11-0400
#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;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS