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

Expert's answer

#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)


LATEST TUTORIALS
APPROVED BY CLIENTS