#Print square and cube Values by using macro substitutions.
def sq(n):
return n*n
def cube(n):
return n*n*n
a=5
b=3
s=c=0
#Function calling
s=sq(a)
c=cube(b)
#Result
print "Square value of 5 is %d"%(s)
print "Cube value of 3 is %d"%(c)
#Print the Values using macro substitution.
VAL=40
print "The value is %d"%VAL
#Print Value and text using preprocessing.
VAL=35
HELLO="HELLO"
res=VAL-5
print "Res=VAL-5:Res= %d"%res
print "HELLO"
#Program to print the value using preprocessors.
USD=1
UKP=1
currency_rate=46
currency_rate=100
rs=10*currency_rate
print "The Value of rs is : %d"%rs