Chapter 2: Introduction to C Programming

Example 2.1, Page number: 2.2

In [1]:
print "Welcome to python programming"
Welcome to python programming

Example 2.5, Page number: 2.5

In [2]:
sum=10+20
print sum
30

Example 2.6, Page number: 2.5

In [2]:
num1,num2=50,25
Sum=num1+num2
print "addition of %d and %d = %d" %(num1,num2,Sum)
addition of 50 and 25 = 75
In [ ]: