{"id":54,"date":"2020-05-11T01:32:07","date_gmt":"2020-05-10T22:32:07","guid":{"rendered":"https:\/\/blogs.e-me.edu.gr\/hive-programmatismos-ypologistwn-eneegyl-euboias\/?p=54"},"modified":"2020-05-11T01:32:37","modified_gmt":"2020-05-10T22:32:37","slug":"%ce%b4%ce%bf%ce%bc%ce%ae-%ce%b5%cf%80%ce%b9%ce%bb%ce%bf%ce%b3%ce%ae%cf%82-if","status":"publish","type":"post","link":"https:\/\/blogs.e-me.edu.gr\/hive-programmatismos-ypologistwn-eneegyl-euboias\/2020\/05\/11\/%ce%b4%ce%bf%ce%bc%ce%ae-%ce%b5%cf%80%ce%b9%ce%bb%ce%bf%ce%b3%ce%ae%cf%82-if\/","title":{"rendered":"\u0394\u03bf\u03bc\u03ae \u03b5\u03c0\u03b9\u03bb\u03bf\u03b3\u03ae\u03c2 if (AN)"},"content":{"rendered":"<p><strong> \u0394\u03bf\u03bc\u03ae \u03b5\u03c0\u03b9\u03bb\u03bf\u03b3\u03ae\u03c2 if<\/strong><\/p>\n<p>\u0397 \u03b4\u03bf\u03bc\u03ae \u03b5\u03c0\u03b9\u03bb\u03bf\u03b3\u03ae\u03c2 if (AN) \u03c7\u03c1\u03b7\u03c3\u03b9\u03bc\u03bf\u03c0\u03bf\u03b9\u03b5\u03af\u03c4\u03b1\u03b9, \u03cc\u03c4\u03b1\u03bd \u03b8\u03ad\u03bb\u03bf\u03c5\u03bc\u03b5 \u03bd\u03b1 \u03b5\u03ba\u03c4\u03b5\u03bb\u03b5\u03c3\u03c4\u03b5\u03af \u03bc\u03b9\u03b1 \u03b1\u03ba\u03bf\u03bb\u03bf\u03c5\u03b8\u03af\u03b1 \u03b5\u03bd\u03c4\u03bf\u03bb\u03ce\u03bd, \u03bc\u03cc\u03bd\u03bf\u03bd, \u03b5\u03c6\u03cc\u03c3\u03bf\u03bd \u03c0\u03bb\u03b7\u03c1\u03b5\u03af\u03c4\u03b1\u03b9 \u03bc\u03af\u03b1 \u03c3\u03c5\u03b3\u03ba\u03b5\u03ba\u03c1\u03b9\u03bc\u03ad\u03bd\u03b7 \u03c3\u03c5\u03bd\u03b8\u03ae\u03ba\u03b7. \u0393\u03b9\u03b1 \u03bd\u03b1 \u03b5\u03c0\u03b9\u03bb\u03cd\u03c3\u03bf\u03c5\u03bc\u03b5 \u03c0\u03b9\u03bf \u03c3\u03cd\u03bd\u03b8\u03b5\u03c4\u03b1 \u03c0\u03c1\u03bf\u03b2\u03bb\u03ae\u03bc\u03b1\u03c4\u03b1, \u03c0\u03c1\u03ad\u03c0\u03b5\u03b9 \u03bd\u03b1 \u03b5\u03af\u03bc\u03b1\u03c3\u03c4\u03b5 \u03c3\u03b5 \u03b8\u03ad\u03c3\u03b7 \u03bd\u03b1 \u03b4\u03b7\u03bc\u03b9\u03bf\u03c5\u03c1\u03b3\u03bf\u03cd\u03bc\u03b5 \u03c3\u03c4\u03bf\u03bd \u03b1\u03bb\u03b3\u03cc\u03c1\u03b9\u03b8\u03bc\u03bf \u03bb\u03bf\u03b3\u03b9\u03ba\u03ac \u03bc\u03bf\u03bd\u03bf\u03c0\u03ac\u03c4\u03b9\u03b1, \u03b5\u03be\u03b5\u03c4\u03ac\u03b6\u03bf\u03bd\u03c4\u03b1\u03c2 \u03b1\u03c0\u03bb\u03ac \u03bb\u03bf\u03b3\u03b9\u03ba\u03ac \u03b5\u03c1\u03c9\u03c4\u03ae\u03bc\u03b1\u03c4\u03b1 \u03b3\u03b9\u03b1 \u03c4\u03b7\u03bd \u03b5\u03ba\u03c4\u03ad\u03bb\u03b5\u03c3\u03b7 \u03ae \u03cc\u03c7\u03b9 \u03bc\u03b9\u03b1\u03c2 \u03bf\u03bc\u03ac\u03b4\u03b1\u03c2 \u03b5\u03bd\u03c4\u03bf\u03bb\u03ce\u03bd.<\/p>\n<p>\u0391\u03c0\u03bb\u03ae \u03b4\u03bf\u03bc\u03ae \u03b5\u03c0\u03b9\u03bb\u03bf\u03b3\u03ae\u03c2<br \/>\n\u0391\u03bd \u03b7 \u03c3\u03c5\u03bd\u03b8\u03ae\u03ba\u03b7 \u03b5\u03af\u03bd\u03b1\u03b9 \u03b1\u03bb\u03b7\u03b8\u03ae\u03c2, \u03c4\u03cc\u03c4\u03b5 \u03c4\u03bf \u03c3\u03cd\u03bd\u03bf\u03bb\u03bf \u03c4\u03c9\u03bd \u03b5\u03bd\u03c4\u03bf\u03bb\u03ce\u03bd \u03c0\u03bf\u03c5 \u03c0\u03b5\u03c1\u03b9\u03ad\u03c7\u03bf\u03bd\u03c4\u03b1\u03b9 \u03c3\u03c4\u03b7\u03bd \u03b4\u03bf\u03bc\u03ae if, \u03b8\u03b1 \u03b5\u03ba\u03c4\u03b5\u03bb\u03b5\u03c3\u03c4\u03bf\u03cd\u03bd. \u0391\u03bb\u03bb\u03b9\u03ce\u03c2, \u03b7 \u03c1\u03bf\u03ae \u03c4\u03bf\u03c5 \u03c0\u03c1\u03bf\u03b3\u03c1\u03ac\u03bc\u03bc\u03b1\u03c4\u03bf\u03c2 \u03b8\u03b1 \u03c0\u03c1\u03bf\u03c3\u03c0\u03b5\u03c1\u03ac\u03c3\u03b5\u03b9 \u03c4\u03b7 \u03b4\u03bf\u03bc\u03ae if \u03ba\u03b1\u03b9 \u03b8\u03b1 \u03c3\u03c5\u03bd\u03b5\u03c7\u03af\u03c3\u03b5\u03b9 \u03b1\u03c0\u03cc \u03c4\u03b7\u03bd \u03b5\u03bd\u03c4\u03bf\u03bb\u03ae \u03c0\u03bf\u03c5 \u03b2\u03c1\u03af\u03c3\u03ba\u03b5\u03c4\u03b1\u03b9 \u03b1\u03bc\u03ad\u03c3\u03c9\u03c2 \u03bc\u03b5\u03c4\u03ac \u03c4\u03bf \u03c4\u03ad\u03bb\u03bf\u03c2 \u03c4\u03b7\u03c2 if.<\/p>\n<p>if &lt;\u03c3\u03c5\u03bd\u03b8\u03ae\u03ba\u03b7 \u03b5\u03bb\u03ad\u03b3\u03c7\u03bf\u03c5&gt;:<br \/>\n# \u03b5\u03bd\u03c4\u03bf\u03bb\u03ad\u03c2 \u03c0\u03bf\u03c5 \u03b8\u03b1 \u03b5\u03ba\u03c4\u03b5\u03bb\u03b5\u03c3\u03b8\u03bf\u03cd\u03bd \u03b1\u03bd \u03b9\u03c3\u03c7\u03cd\u03b5\u03b9 (\u03b1\u03bb\u03b7\u03b8\u03ae\u03c2-True) \u03b7 \u03c3\u03c5\u03bd\u03b8\u03ae\u03ba\u03b7 \u03b5\u03bb\u03ad\u03b3\u03c7\u03bf\u03c5<\/p>\n<p># \u03a0\u03b1\u03c1\u03ac\u03b4\u03b5\u03b9\u03b3\u03bc\u03b1<\/p>\n<p># \u03c0\u03c1\u03cc\u03b3\u03c1\u03b1\u03bc\u03bc\u03b1 \u03b5\u03bc\u03c6\u03ac\u03bd\u03b9\u03c3\u03b7\u03c2 \u03c0\u03c1\u03bf\u03b5\u03b9\u03b4\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b7\u03c2 \u03b1\u03c1\u03bd\u03b7\u03c4\u03b9\u03ba\u03bf\u03cd \u03c0\u03bf\u03c3\u03bf\u03cd.<br \/>\na = input('\u0394\u03ce\u03c3\u03b5 \u03ad\u03bd\u03b1 \u03c0\u03bf\u03c3\u03cc')<br \/>\nif a &lt;0:<br \/>\nprint \"\u03a0\u03a1\u039f\u03a3\u039f\u03a7\u0397 \u03c4\u03bf \u03c0\u03bf\u03c3\u03cc \u03b5\u03af\u03bd\u03b1\u03b9 \u03b1\u03c1\u03bd\u03b7\u03c4\u03b9\u03ba\u03cc\u03c2 \u03b1\u03c1\u03b9\u03b8\u03bc\u03cc\u03c2\"<\/p>\n<p># \u03a0\u03b1\u03c1\u03ac\u03b4\u03b5\u03b9\u03b3\u03bc\u03b1<\/p>\n<p># \u03c0\u03c1\u03cc\u03b3\u03c1\u03b1\u03bc\u03bc\u03b1 \u03b5\u03bc\u03c6\u03ac\u03bd\u03b9\u03c3\u03b7\u03c2 \u03c0\u03c1\u03bf\u03b5\u03b9\u03b4\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b7\u03c2 \u03b8\u03b5\u03c4\u03b9\u03ba\u03bf\u03cd \u03c0\u03bf\u03c3\u03bf\u03cd.<br \/>\na = input('\u0394\u03ce\u03c3\u03b5 \u03ad\u03bd\u03b1 \u03c0\u03bf\u03c3\u03cc')<br \/>\nif a &gt;0:<br \/>\nprint \"\u03a0\u03a1\u039f\u03a3\u039f\u03a7\u0397 \u03c4\u03bf \u03c0\u03bf\u03c3\u03cc \u03b5\u03af\u03bd\u03b1\u03b9 \u03b8\u03b5\u03c4\u03b9\u03ba\u03cc\u03c2 \u03b1\u03c1\u03b9\u03b8\u03bc\u03cc\u03c2\"<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0394\u03bf\u03bc\u03ae \u03b5\u03c0\u03b9\u03bb\u03bf\u03b3\u03ae\u03c2 if \u0397 \u03b4\u03bf\u03bc\u03ae \u03b5\u03c0\u03b9\u03bb\u03bf\u03b3\u03ae\u03c2 if (AN) \u03c7\u03c1\u03b7\u03c3\u03b9\u03bc\u03bf\u03c0\u03bf\u03b9\u03b5\u03af\u03c4\u03b1\u03b9, \u03cc\u03c4\u03b1\u03bd \u03b8\u03ad\u03bb\u03bf\u03c5\u03bc\u03b5 \u03bd\u03b1 \u03b5\u03ba\u03c4\u03b5\u03bb\u03b5\u03c3\u03c4\u03b5\u03af \u03bc\u03b9\u03b1 \u03b1\u03ba\u03bf\u03bb\u03bf\u03c5\u03b8\u03af\u03b1 \u03b5\u03bd\u03c4\u03bf\u03bb\u03ce\u03bd, \u03bc\u03cc\u03bd\u03bf\u03bd, \u03b5\u03c6\u03cc\u03c3\u03bf\u03bd \u03c0\u03bb\u03b7\u03c1\u03b5\u03af\u03c4\u03b1\u03b9 \u03bc\u03af\u03b1 \u03c3\u03c5\u03b3\u03ba\u03b5\u03ba\u03c1\u03b9\u03bc\u03ad\u03bd\u03b7 \u03c3\u03c5\u03bd\u03b8\u03ae\u03ba\u03b7. \u0393\u03b9\u03b1 \u03bd\u03b1 \u03b5\u03c0\u03b9\u03bb\u03cd\u03c3\u03bf\u03c5\u03bc\u03b5 \u03c0\u03b9\u03bf \u03c3\u03cd\u03bd\u03b8\u03b5\u03c4\u03b1 \u03c0\u03c1\u03bf\u03b2\u03bb\u03ae\u03bc\u03b1\u03c4\u03b1, \u03c0\u03c1\u03ad\u03c0\u03b5\u03b9 \u03bd\u03b1 \u03b5\u03af\u03bc\u03b1\u03c3\u03c4\u03b5 \u03c3\u03b5 \u03b8\u03ad\u03c3\u03b7 \u03bd\u03b1 \u03b4\u03b7\u03bc\u03b9\u03bf\u03c5\u03c1\u03b3\u03bf\u03cd\u03bc\u03b5 \u03c3\u03c4\u03bf\u03bd \u03b1\u03bb\u03b3\u03cc\u03c1\u03b9\u03b8\u03bc\u03bf \u03bb\u03bf\u03b3\u03b9\u03ba\u03ac \u03bc\u03bf\u03bd\u03bf\u03c0\u03ac\u03c4\u03b9\u03b1, \u03b5\u03be\u03b5\u03c4\u03ac\u03b6\u03bf\u03bd\u03c4\u03b1\u03c2 \u03b1\u03c0\u03bb\u03ac \u03bb\u03bf\u03b3\u03b9\u03ba\u03ac \u03b5\u03c1\u03c9\u03c4\u03ae\u03bc\u03b1\u03c4\u03b1 \u03b3\u03b9\u03b1 \u03c4\u03b7\u03bd \u03b5\u03ba\u03c4\u03ad\u03bb\u03b5\u03c3\u03b7 \u03ae \u03cc\u03c7\u03b9 \u03bc\u03b9\u03b1\u03c2 \u03bf\u03bc\u03ac\u03b4\u03b1\u03c2 \u03b5\u03bd\u03c4\u03bf\u03bb\u03ce\u03bd. \u0391\u03c0\u03bb\u03ae \u03b4\u03bf\u03bc\u03ae \u03b5\u03c0\u03b9\u03bb\u03bf\u03b3\u03ae\u03c2 \u0391\u03bd [&hellip;]<\/p>\n","protected":false},"author":25774,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-54","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/blogs.e-me.edu.gr\/hive-programmatismos-ypologistwn-eneegyl-euboias\/wp-json\/wp\/v2\/posts\/54","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.e-me.edu.gr\/hive-programmatismos-ypologistwn-eneegyl-euboias\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.e-me.edu.gr\/hive-programmatismos-ypologistwn-eneegyl-euboias\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.e-me.edu.gr\/hive-programmatismos-ypologistwn-eneegyl-euboias\/wp-json\/wp\/v2\/users\/25774"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.e-me.edu.gr\/hive-programmatismos-ypologistwn-eneegyl-euboias\/wp-json\/wp\/v2\/comments?post=54"}],"version-history":[{"count":0,"href":"https:\/\/blogs.e-me.edu.gr\/hive-programmatismos-ypologistwn-eneegyl-euboias\/wp-json\/wp\/v2\/posts\/54\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.e-me.edu.gr\/hive-programmatismos-ypologistwn-eneegyl-euboias\/wp-json\/wp\/v2\/media?parent=54"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.e-me.edu.gr\/hive-programmatismos-ypologistwn-eneegyl-euboias\/wp-json\/wp\/v2\/categories?post=54"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.e-me.edu.gr\/hive-programmatismos-ypologistwn-eneegyl-euboias\/wp-json\/wp\/v2\/tags?post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}