That works but you can please provide me a complete code including the variable declaration and user input?