537 - Artificial Intelligence?

Difficulty : easy

Solution Description :

String processing problem

Do this what is say in question

When you got '=' then here you got a value
If you got Prefix then you need to multiply by the value
m = 0.001, k=1000.0 and M=1000000.0

You can use atof() function for convert value from string to double

P = I*U, I = P/U, and U = P/I

Remember print a blank line after each output set