(Print a table) Write a program that displays the following table:
a b a ** b
1 2 1
2 3 8
3 4 81
4 5 1024
5 6 15625
#Import math module for caluculations
import math
#Display Results
print("a b pow(a, b)")
a = 1
b = 2
print("{} {} {}" .format(a,b,int(math.pow(a,b))))
a=a+1
b=b+1
print("{} {} {}" .format(a,b,int(math.pow(a,b))))
a=a+1
b=b+1
print("{} {} {}" .format(a,b,int(math.pow(a,b))))
a=a+1
b=b+1
print("{} {} {}" .format(a,b,int(math.pow(a,b))))
a=a+1
b=b+1
print("{} {} {}" .format(a,b,int(math.pow(a,b))))
Output:
a b pow(a, b)
1 2 1
2 3 8
3 4 81
4 5 1024
5 6 15625