Answer to Question #98700 in C++ for ed powers

Question #98700
Given a= x 5 + y 6 /3 write a program that allow user to enter the values of x and y and give output of a and b
1
Expert's answer
2019-11-15T10:44:03-0500
#include "iostream"
using namespace std;


float Calculating_a(float x, float y)
{
	return (pow(x,5) + pow(y,6)/3);
}


int main()
{
	float x, y;
	cout << "Enter x: ";
	cin >> x;
	cout << "Enter y: ";
	cin >> y;
	cout << "a : " << Calculating_a(x, y) << endl;
	system("pause");
	return 0;
}

Just for a (I don't have formula for b)


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