print "This is my first C++ program."
x=None
x=1023 #this assigns 1023 to x
#Result
print "This program prints the value of x: ",x #prints x,i.e, 1023
#Variable declaration
gallons=10 #User input
liters=None
liters=gallons*4 #convert to liters
#Result
print "Liters: ",liters
#Variable declaration
gallons=10.20 #User input
liters=None
liters=gallons*3.7854 #convert to liters
#Result
print "Liters: ",liters
def myfunc():
print "Inside myfunc() "
print "In main()"
myfunc() #call myfunc()
print "Back in main()"
print abs(-10)
def mul(x,y):
print x*y,
#calling mul
mul(10,20)
mul(5,6)
mul(8,9)
def mul(x,y):
return x*y #return product of x and y
#Variable declaration
answer=mul(10,11) #assign return values
#Result
print "The answer is: ",answer
print "one"
print "two" #prints in different line
print "three","four" #prints all in same line
#Variable declaration
a=10 #user input for two numbers
b=20
#Result
if a<b:
print "First number is less than second. "
for count in range(1,100+1):
print count,
a=10 #User input for two numbers
b=20
#Result
if a<b:
print "First number is less than second"
print "Their difference is: ",b-a