Hour 3: Learning the Structure of a C program

Example 3.1, Page No.48

In [1]:
print "Howdy, neighbour! This is my first C program"
Howdy, neighbour! This is my first C program

Example 3.2, Page No.49

In [2]:
def integer_add(x,y):
    result = x+y
    return result
#This program has no output because the function is not called in this program

Example 3.3, Page No.50

In [3]:
def integer_add(x,y):
    result = x+y
    return result
sum=integer_add(5,12)
print "The addition of 5 and 12 is ",sum
The addition of 5 and 12 is  17