Kunal2083


Write a procedure that takes an integer value and returns the number with its digit reversed.

Write a program, which verifies that the procedure is properly written.


Re: Write a program, which verifies that the procedure is properly written

ahmedilyas


sorry but we cant do the homework for you. You need to learn yourself to do this.

we can give you the logic but pretty much that. When you have coding errors/issues, then post the code you are using and we will try to help.

  • check to see if the textbox contains numeric characters (look at Char.IsDigit() method, only accepts a single char but you can use a loop to go through each character and see if it s a digit or not)

  • if they contain digits then simply count down from the last character in the textbox, going to the first character in a for loop, going in reverse (step -1)