{"id":114,"date":"2016-04-10T08:30:24","date_gmt":"2016-04-10T08:30:24","guid":{"rendered":"http:\/\/tpallas.net\/pascal\/?p=114"},"modified":"2016-04-10T18:07:51","modified_gmt":"2016-04-10T18:07:51","slug":"%ce%ba%ce%bf%c2%b5%cf%80%ce%b9%ce%bf%cf%85%cf%84%ce%b5%cf%81%ce%ac%ce%ba%ce%b9-%c2%b5%ce%b5-functions","status":"publish","type":"post","link":"https:\/\/tpallas.net\/pascal\/2016\/04\/10\/%ce%ba%ce%bf%c2%b5%cf%80%ce%b9%ce%bf%cf%85%cf%84%ce%b5%cf%81%ce%ac%ce%ba%ce%b9-%c2%b5%ce%b5-functions\/","title":{"rendered":"\u039a\u03bf\u00b5\u03c0\u03b9\u03bf\u03c5\u03c4\u03b5\u03c1\u03ac\u03ba\u03b9 \u00b5\u03b5 functions"},"content":{"rendered":"<blockquote><p>program Calculator4(input, output);<br \/>\nvar x1, x2, apotelesma: real;<br \/>\npraxh: char;<br \/>\nfunction PROSTHESE (x, y : real ): real;<br \/>\nbegin<br \/>\nPROSTHESE := x + y<br \/>\nend;<br \/>\nfunction AFAIRESE (x, y : real ): real;<br \/>\nbegin<br \/>\nAFAIRESE := x &#8211; y<br \/>\nend;<br \/>\nfunction POLLAPLASIASE (x, y : real ): real;<br \/>\nbegin<br \/>\nPOLLAPLASIASE := x * y<br \/>\nend;<br \/>\nfunction DIAIRESE (x, y : real ): real;<br \/>\nbegin<br \/>\nDIAIRESE := x \/ y<br \/>\nend;<br \/>\nbegin<br \/>\nwriteln(output, &#8216;EISAGETE: telesti x1 x2&#8217;);<br \/>\nreadln(input, praxh, x1, x2);<br \/>\ncase praxh of<br \/>\n&#8216;+&#8217; : apotelesma := PROSTHESE (x1, x2);<br \/>\n&#8216;-&#8216; : apotelesma := AFAIRESE (x1, x2);<br \/>\n&#8216;*&#8217; : apotelesma := POLLAPLASIASE (x1, x2);<br \/>\n&#8216;\/&#8217; : if x2 &lt;&gt; 0 then apotelesma := DIAIRESE (x1, x2)<br \/>\nelse writeln(output, &#8216;ADYNATH DIAIRESH&#8217;);<br \/>\nelse writeln(output, &#8216;LA8OS EISAGVGH DEDOMENVN&#8217;);<br \/>\nend {case};<br \/>\nwriteln(output, x1, &#8216; &#8216;, praxh, &#8216; &#8216;, x2, &#8216; = &#8216;, apotelesma);<\/p>\n<p>end. {Calculator4}<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>program Calculator4(input, output); var x1, x2, apotelesma: real; praxh: char; function PROSTHESE (x, y : real ): real; begin PROSTHESE := x + y end;&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[14,15],"_links":{"self":[{"href":"https:\/\/tpallas.net\/pascal\/wp-json\/wp\/v2\/posts\/114"}],"collection":[{"href":"https:\/\/tpallas.net\/pascal\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tpallas.net\/pascal\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tpallas.net\/pascal\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tpallas.net\/pascal\/wp-json\/wp\/v2\/comments?post=114"}],"version-history":[{"count":4,"href":"https:\/\/tpallas.net\/pascal\/wp-json\/wp\/v2\/posts\/114\/revisions"}],"predecessor-version":[{"id":123,"href":"https:\/\/tpallas.net\/pascal\/wp-json\/wp\/v2\/posts\/114\/revisions\/123"}],"wp:attachment":[{"href":"https:\/\/tpallas.net\/pascal\/wp-json\/wp\/v2\/media?parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tpallas.net\/pascal\/wp-json\/wp\/v2\/categories?post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tpallas.net\/pascal\/wp-json\/wp\/v2\/tags?post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}