Alpha Geek

(8)

$10/per page/Negotiable

About Alpha Geek

Levels Tought:
University

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Environmental science,Essay writing,Programming,Social Science,Statistics Hide all
Teaching Since: Apr 2017
Last Sign in: 438 Weeks Ago, 2 Days Ago
Questions Answered: 9562
Tutorials Posted: 9559

Education

  • bachelor in business administration
    Polytechnic State University Sanluis
    Jan-2006 - Nov-2010

  • CPA
    Polytechnic State University
    Jan-2012 - Nov-2016

Experience

  • Professor
    Harvard Square Academy (HS2)
    Mar-2012 - Present

Category > Programming Posted 02 May 2017 My Price 5.00

Implement function reverse_int()

Implement function reverse_int() that takes a three-digit integer as input and returns the integer obtained by reversing its digits. For example, if the input is 123, your function should return 321. You are not allowed to use the string data type operations to do this task. Your program should simply read the input as an integer and process it as an integer using operators such as // and %. You may assume that the input integer does not end with the 0 digit.

>>> reverse_int(123)

321

>>> reverse_int(908) 809

 

 

 

Answers

(8)
Status NEW Posted 02 May 2017 11:05 AM My Price 5.00

-----------

Attachments

file 1493724869-answer1.docx preview (118 words )
I-----------mpl-----------eme-----------nt -----------fun-----------cti-----------on -----------rev-----------ers-----------e_i-----------nt(-----------) t-----------hat----------- ta-----------kes----------- a -----------thr-----------ee------------dig-----------it -----------int-----------ege-----------r a-----------s i-----------npu-----------t a-----------nd -----------ret-----------urn-----------s t-----------he -----------int-----------ege-----------r o-----------bta-----------ine-----------d b-----------y r-----------eve-----------rsi-----------ng -----------its----------- di-----------git-----------s. -----------For----------- ex-----------amp-----------le,----------- if----------- th-----------e i-----------npu-----------t i-----------s 1-----------23,----------- yo-----------ur -----------fun-----------cti-----------on -----------sho-----------uld----------- re-----------tur-----------n 3-----------21.----------- Yo-----------u a-----------re -----------not----------- al-----------low-----------ed -----------to -----------use----------- th-----------e s-----------tri-----------ng -----------dat-----------a t-----------ype----------- op-----------era-----------tio-----------ns -----------to -----------do -----------thi-----------s t-----------ask-----------. Y-----------our----------- pr-----------ogr-----------am -----------sho-----------uld----------- si-----------mpl-----------y r-----------ead----------- th-----------e i-----------npu-----------t a-----------s a-----------n i-----------nte-----------ger----------- an-----------d p-----------roc-----------ess----------- it----------- as----------- an----------- in-----------teg-----------er -----------usi-----------ng -----------ope-----------rat-----------ors----------- su-----------ch -----------as -----------// -----------and----------- %.----------- Yo-----------u m-----------ay -----------ass-----------ume----------- th-----------at -----------the----------- in-----------put----------- in-----------teg-----------er
Not Rated(0)