max3.py

#!/usr/bin/env python
#
# Author:  Yotam Medini  [email protected] -- Created: 2006/February/22
#
# Find and print Maximum of 3 numbers

import sys

a = 1
b = 2
c = 3

if a < b:
    if b < c:
        print "max = c = ", c
    else:
        print "max = b = ", b
else:
    if a < c:
        print "max = c = ", c
    else:
        print "max = a = ", a

sys.exit(0)

Generated by GNU enscript 1.6.4.