Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

PLEEAASEE HEELP

0 votes
asked Feb 7, 2018 by Justin Apilado (390 points)
Design a program that will compute for the value of x in the
given equation below . Assume that the variables a, b, c are to
be entered by the user in C++ plsss
         10b^2          (a-b)*c
x = ------------ + 6  ---------- December 1
         3ac                 10

1 Answer

0 votes
answered Feb 8, 2018 by Laxaman Pal (440 points)

#include <iostream>

#include <cmath>

using namespace std;

int main()
{
    int a, b, c;
    float x;
    cout<<"Enter the values of a, b and c respectively : ";
    cin>>a>>b>>c;
    x = (((float)10*b*b)/(3*a*c)) + (6*(((a-b)*c)/10));
    cout<<"\n\n\tx = "<<x<<" !!!"<<endl;
    return 0;
}

Cheers yes

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...