(Print a table) Write a program that displays the following table:
print("A program to display the following table")
print("a", "a^2", "a^3")
print("1", 1 * 1, 1 * 1 * 1)
print("2", 2 * 2, 2 * 2 * 2)
print("3", 3 * 3, 3 * 3 * 3)
print("4", 4 * 4, 4 * 4 * 4)
Output:
Python 3.2.1 (default, Jul 10 2011, 21:51:15) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>>
A program to display the following table
a a^2 a^3
1 1 1
2 4 8
3 9 27
4 16 64
>>>