satya

Wednesday, October 7, 2020

Program-11

                                                                       Program-11

11.In algebraic expressions, the symbol for multiplication is often left out, as in 3x+4y or  

      3(x+5). Computers prefer those expressions to include the multiplication symbol, like 

       3*x+4*y or 3*(x+5). Write a program that asks the user for an algebraic expression 

      and then inserts multiplication symbols where appropriate.


No comments:

Post a Comment

Program 30

                                                                         Program 30 Write a Python class to implement pow(x, n). class Pow1:...