Thanks to visit codestin.com
Credit goes to rajmagicnumber.netlify.app

Magic Number

Think of a Number

Double that Number

Add

Divide the result by 2

Substract the number which you have taken at first

Your ans is