0

Help me please...to know the value of x from the equation using C++ : The equation is : 3x+2=2

please help..I am new learner

16th Jul 2017, 8:20 PM
Fardin Alif
Fardin Alif - avatar
1 Odpowiedź
+ 1
By solving x you'll need to detect all the signs and values in the equation. Which side is left and right of the equal sign? This is important because the program will be shifting numbers around to get x alone. After you've identified the numbers, their values and their positions. It's time to find X. After locating X, move all the numbers to one side, and get X alone. And boom, you have a mathematical equation, and now the program should just calculate the value for what's on the right side (Opposite side of X)
16th Jul 2017, 9:21 PM
Limitless
Limitless - avatar