Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #42131

Help printing the integers of a longer number

X-Received by 10.224.219.146 with SMTP id hu18mr14207384qab.3.1364481599968; Thu, 28 Mar 2013 07:39:59 -0700 (PDT)
X-Received by 10.49.120.67 with SMTP id la3mr1800175qeb.12.1364481599895; Thu, 28 Mar 2013 07:39:59 -0700 (PDT)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!ca1no14648839qab.0!news-out.google.com!v17ni9qad.0!nntp.google.com!ca1no14648830qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Thu, 28 Mar 2013 07:39:59 -0700 (PDT)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=74.109.22.141; posting-account=4W7nAAoAAABhu6jqNF1_LLkqm6-ij3Cw
NNTP-Posting-Host 74.109.22.141
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <7764e61c-e4cc-413a-a76d-2d37f39abc61@googlegroups.com> (permalink)
Subject Help printing the integers of a longer number
From khaosyt@gmail.com
Injection-Date Thu, 28 Mar 2013 14:39:59 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.python:42131

Show key headers only | View raw


I want to print the individual numbers of a large number using division and modulus division. 

For example:

Enter a positive integer: 54321
5
4
3
2
1

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Help printing the integers of a longer number khaosyt@gmail.com - 2013-03-28 07:39 -0700
  Re: Help printing the integers of a longer number Chris Angelico <rosuav@gmail.com> - 2013-03-29 01:48 +1100
  Re: Help printing the integers of a longer number Joel Goldstick <joel.goldstick@gmail.com> - 2013-03-28 10:48 -0400
  Re: Help printing the integers of a longer number Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2013-03-28 19:03 +0200
    Re: Help printing the integers of a longer number Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2013-03-28 19:11 +0200
      Re: Help printing the integers of a longer number Chris Angelico <rosuav@gmail.com> - 2013-03-29 04:19 +1100
    Re: Help printing the integers of a longer number Chris Angelico <rosuav@gmail.com> - 2013-03-29 04:17 +1100

csiph-web