The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 1 Day Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Given a linear equation in one variable of the form num1 operator num2 = num3 where any one of num1, num2 or num3 is the variable x and other two are integers. Operators can be any one of + , - , / or *, there may or may not be spaces given between the numbers and operator or ‘=’ sign.
Â
Find the value of x.
Â
Note:The equation will always be a valid equation.
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Input: 3 1+x=12 12 /x =2 -8*-x =8 Output: 11.000000 6.000000 1.000000
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll