count=1
while count<=3: #while loop codition check
print "Enter values of p,n and r"
p=eval(raw_input())
n=eval(raw_input())
r=eval(raw_input())
si=p*n*r/100
print "Simple interest=Rs.%f" % (si)
count=count+1 #increment
i=1
while i<=10:
print "%d\n" % (i) #there is no increment/decrement thats why indefinite loop
i=1
while i<=10:
print "\n" ,i
i=i+1
i=5
while i>=1:
print "Make the computer literate!\n"
i=i-1
a=10.0
while a<=10.5:
print "Raindrops on roses..."
print "...and whiskers on kittens\n"
a=a+0.1
i=1
while i<=32767: #print numbers from 1 to 32767
print "%d\n" ,i
i=i+1
i=1
while i<=10:
print i
i=i+1
i=1
while i<=10:
print "\n" ,i
i+=1 #increment short hand operator
for count in range(1,4,1): #for loop
print "Enter values of p,n and r"
p=eval(raw_input())
n=eval(raw_input())
r=eval(raw_input())
si=p*n*r/100
print "Simple Interest=Rs.%f" % (si)
for i in range(1,11,1):
print "%d\n" % (i)
for i in range(1,11):
print "\n" ,i
i=i+1
i=1
for i in range(i,11,1):
print "%d\n" % (i)
i=1
for i in range(i,11):
print "%d\n" % (i)
i=i+1
for r in range(1,4,1): #outer loop
for c in range(1,3,1): #inner loop
sum=r+c
print "r=%d c=%d sum=%d\n" % (r,c,sum)
while(1): #do-while loop is not present in python
print "Enter a number"
num=eval(raw_input())
print "square of %d is %d\n" % (num,num*num)
print "Want to enter another number y/n"
another=raw_input()
if(another!='y'):
break
another='y'
for i in range(1,1000): #check if another is in word
if another=='y':
print "Enter a number"
num=eval(raw_input())
print "square of %d is %d\n" % (num,num*num)
print "Want to enter another number y/n"
another=raw_input()
another='y'
while(another=='y'):
print "Enter a number"
num=eval(raw_input())
print "square of %d is %d\n" % (num,num*num)
print "Want to enter another number y/n"
another=raw_input()
print "Enter a number"
num=eval(raw_input())
i=2
while i<=num-1:
if num%i==0:
print "Not a prime number\n"
break #exit the loop
i+=1
if i==num:
print "Prime number\n"
i=1
j=1
while (i<=100):
i+=1
while (j<=200):
j+=1
if (j==150):
break #it will terminate the inner loop only
else:
print "%d %d\n" % (i,j)
for i in range(1,3,1):
for j in range(1,3,1):
if i==j:
continue #it will again send back to loop without executing succeeding statements
print "%d %d\n" % (i,j)