Ramping Down the variable in Arduino IDE with the help of millis()??......

Danois90:
Yes, but that was not what he did.

Exactly. He did not declare the variables as static, but what he was trying to do was perfectly possible to do using local variables