Math Equation's Solving
#include
using namespace std;
int main() {
float x,y,z,s;
cout << "Enter Number" << endl;
cin >> x;
y = x + ( 3 * x - 2 );
z = x*x / ( x * 3 ) + 4;
s = ( 3*(x*x) + 5*x - 6 ) - ( 4*(x*x) + 7*x / 2 - 3 );
cout << "Value of y is = " << y << endl;
cout << "Value of z is = " << z << endl;
cout << "Value of s is = " << s << endl;
return 0;
}
Comments
Post a Comment