# Πρόγραμμα  while
x = 40 
# αρχική τιμή στη μεταβλητή x
while x < 50 : # έλεγχος της επανάληψης
      x = x + 1 # αύξηση του μετρητή
      print x
print x

# Πρόγραμμα for
athroisma = 0
for i in range(1,100,2):
     athroisma = athroisma + i
     print i
print ' To αποτέλεσμα είναι ', athroisma
##############################################
##############################################
# Πρόγραμμα  while-->for
# αρχική τιμή στη μεταβλητή x
for x in range(41,51):
      print x
print x

# Πρόγραμμα for-->while
athroisma = 0
i=1
while i<100 : 
      athroisma = athroisma + i
      i=i+2
print ' To αποτέλεσμα είναι ', athroisma
