Files
qt-creator/tests/manual/gdbdebugger/python/math.py

20 lines
234 B
Python
Raw Normal View History

2010-04-23 12:12:22 +02:00
def square(a):
x = a * a
return a
def cube(a):
x = square(a)
x = x * a
x = x + 1
x = x - 1
return x
def main():
print cube(3)
print cube(4)
print cube(5)
if __name__ == '__main__':
main()