sum = 0
x = 0
while True:
x = x + 1
if x > 100:
break
if(x%2==0):
continue
sum+=x;
print sum
x = 0
while True:
x = x + 1
if x > 100:
break
if(x%2==0):
continue
sum+=x;
print sum
2015-08-18
sum = 0
x = 1
n = 1
while True:
if(n>20):
break;
sum+=x;
x=x*2;
n+=1;
print sum
x = 1
n = 1
while True:
if(n>20):
break;
sum+=x;
x=x*2;
n+=1;
print sum
2015-08-18
for x in [ 1,2,3,4,5,6,7,8,9 ]:
for y in [0,1,2,3,4,5,6,7,8,9 ]:
if x<y:
print x*10+y
for y in [0,1,2,3,4,5,6,7,8,9 ]:
if x<y:
print x*10+y
2015-08-17
sum = 0
x = 0
while True:
x = x + 1
if x > 100:
break
if x%2==0:
continue
sum+=x
print sum
x = 0
while True:
x = x + 1
if x > 100:
break
if x%2==0:
continue
sum+=x
print sum
2015-08-17
sum = 0
x = 1
n = 1
while True:
sum+=x
x=x*2
if n==20:
break
n+=1
print sum
x = 1
n = 1
while True:
sum+=x
x=x*2
if n==20:
break
n+=1
print sum
2015-08-17
sum = 0
x = 1
n = 1
while True:
sum+=n*2
if n==20:
break
n+=1;
print sum
x = 1
n = 1
while True:
sum+=n*2
if n==20:
break
n+=1;
print sum
2015-08-17
sum = 0
x = 1
while x<=100:
if x%2!=0:
sum+=x
x+=1;
print sum
x = 1
while x<=100:
if x%2!=0:
sum+=x
x+=1;
print sum
2015-08-17
sum=0
x=1
while True:
sum+=x
x=x+2
if x>100:
break
if x%2>0:
continue
print sum
x=1
while True:
sum+=x
x=x+2
if x>100:
break
if x%2>0:
continue
print sum
2015-08-17
sum=0
x=1
n=1
while True:
x=2**(n-1)
num+=x
n+=1
if n>20:
break
print sum
x=1
n=1
while True:
x=2**(n-1)
num+=x
n+=1
if n>20:
break
print sum
2015-08-17