Im trying to write a small program to get an input value of
I\'m trying to write a small program to get an input value of variable x and then I need to calculate this expression \"((x/3) + (x%)) * 3 = y\" where y is the sum of this expression . I\'m having trouble because of the module I don\'t know what of doing wrong. can anybody help me?
Solution
You can read the variable from command line or through keyboard input.
But then you can go ahead with writing your expression which you want to calculate.
But the expression which you have given in the question contains (x%) which is wrong. I guess there should be something along with it i.e for example a constant 2 or 3.
