To perform a reverse operation you have to not only reverse the operation direction but also the operations itself.
So you have to:
// swap here as already done// Can use the same code as the encoding because there is no difference in the result// Reverse adding 7
iFirst -= 7;
// ...// Reverse modulo 10 operationif (iFirst < 0)
iFirst += 10;
Adding 7 followed by modulo 10 must be treated as single operation here (the modulo just ensures that the result is a single digit).
Similar for the reverse operation: Subtract 7 and ensure that the result is a positive single digit number.
I am trying to print some data from my application.It is printing the data but the page is not coming out of the printer.Please help me on this.
I have commented that but still the same.
i will explain it once again.
see when i am executing the come then after clicking on the button it is printing the message but print is not coming out of the printer. It is printing the message on the paper but the paper is not coming out of printer it is just printing the text and stopping at that particular point only.