Expression equivalent to math formula – Computer Sir Ki Class

Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  

Login
[lwa]



Solved Problem! #JAVA#3713    siteicon   siteicon  

Problem Statement - Expression equivalent to math formula

Write the java syntax for the following formula
x= 0.01 – ab^3 / ab

 

TC++ #3713

Solution


The java syntax can be written as
x = (0.01 – a*b*b*b)/(a*b)

Common Errors

  • Student need to take regarding the brackets and use of multiplication operators in particular


Share

sunmitra| Created: 3-Mar-2018 | Updated: 3-Mar-2018|






Back