~ubuntu-branches/ubuntu/natty/mathomatic/natty

« back to all changes in this revision

Viewing changes to factorial/factorial

  • Committer: Bazaar Package Importer
  • Author(s): Sandro Tosi
  • Date: 2010-05-27 23:29:55 UTC
  • mfrom: (1.1.26 upstream) (3.1.15 sid)
  • Revision ID: james.westby@ubuntu.com-20100527232955-xzvvnwdzy8c9mdji
Tags: 15.1.1-1
* New upstream release
* debian/patches/10_fix_makefile.dpatch
  - updated to new upstream code
* debian/patches/30_bts-459093_ftbfs_make_test_time.dpatch
  - updated to new upstream code

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python
2
2
 
3
 
# Program to display factorials and test "fact.py".
 
3
# This is a Python program to display factorials and test "fact.py".
4
4
 
5
5
from fact import fact
6
6
import sys
12
12
        print
13
13
        print "Usage: %s integer_expressions" % os.path.basename(sys.argv[0])
14
14
        print
15
 
        print "Factorials are the product of all positive integers <= a given integer."
 
15
        print "A factorial is the product of all positive integers <= a given integer."
16
16
        sys.exit(2)
17
17
 
18
18
args = sys.argv[1:]