Write a function intreverse(n) that takes as input a positive integer n and returns the integer obtained by reversing the digits in n. Here are some examples of how your function should work. >>> intreverse(783) 387 >>> intreverse(242789) 987242 >>> intreverse(3) 3
Answers
Answer:
We spent most of the day talking about everything that took place since we last saw each other, and all the while the aroma of the food being cooked kept my nose engrossed. When it was meal time and we were called to the dining table, which was most welcome since I was starved by then.
First, my aunt served fried rice which is a traditional part of any feast, and then roasted chicken was brought out. The rice was well cooked but wasn't too oily, and the chicken was roasted brown, a bit overdone, just the way me and my cousins preferred. Both looked delicious, so with wasting any more time I took some rice and grabbed a large chicken drumstick on my plate. I took the fork and knife in my hand and cut a rather large piece of it and put it in my mouth. The crust outside was nice and crisp, yet the meat was tender and succulent inside. As I continued eating eagerly I noticed that she had also served shrimps, which was equally scrumptious. I took double helping of both the chicken and the shrimp, and munched away.
Finally, after almost an hour, all of us had finished our meal, and kept complimenting my aunt on what an amazing meal it was and what a great cook she is. I stayed another hour with them mainly because I was so full that I couldn't move. As I left I thanked my aunt again for such a good meal. It was one meal that neither me nor my taste-buds would ever forget.
Explanation:
- the function reverse an integer and returns integer obtained by reversing the digits in an by 24789 and it interviews at 9 8 7 2 4 2 by giving the drawing tools and chat facility