{"id":14,"date":"2021-09-20T16:56:19","date_gmt":"2021-09-20T14:56:19","guid":{"rendered":"http:\/\/yb-isn.fr\/2021\/nsi\/tom\/?page_id=14"},"modified":"2021-09-20T17:07:44","modified_gmt":"2021-09-20T15:07:44","slug":"programmation-imc","status":"publish","type":"page","link":"http:\/\/yb-isn.fr\/2021\/nsi\/tom\/programmation-imc\/","title":{"rendered":"Programmation IMC"},"content":{"rendered":"\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"godzilla\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">taille=input(\"Entrez votre taille :\")\ntaille=float(taille)\nmasse=input(\"Entrez votre masse :\")\nmasse=float(masse)\nprint(\"Voici votre moyenne :\")\nimc=masse\/(taille*taille)\nif imc&gt;=0 and imc&lt;=18.5:\n    print(\"Vous \u00eates maigre !\")\nif imc&gt;=24.9 and imc&lt;=29.9:\n    print(\"Vous \u00eates en surpoids !\")\nif imc&gt;=18.5 and imc&lt;=24.9:\n    print(\"Vous \u00eates dans la normal :)\")\nif imc&gt;=29.9 and imc&lt;=40:\n    print(\"Vous \u00eates ob\u00e8se\")\nif imc&gt;=40:\n    print(\"Vous \u00eates en ob\u00e8sit\u00e9 morbide\")\nprint(imc)<\/pre>\n\n\n\n<p>Cette programmation permet de d\u00e9terminer l&rsquo;IMC de chacun, pour cela il suffit de copier ce programme sur un logiciel de programmation (ex: Python ; Thonny ;&#8230;).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cette programmation permet de d\u00e9terminer l&rsquo;IMC de chacun, pour cela il suffit de copier ce programme sur un logiciel de programmation (ex: Python ; Thonny ;&#8230;).<\/p>\n","protected":false},"author":15,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/yb-isn.fr\/2021\/nsi\/tom\/wp-json\/wp\/v2\/pages\/14"}],"collection":[{"href":"http:\/\/yb-isn.fr\/2021\/nsi\/tom\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/yb-isn.fr\/2021\/nsi\/tom\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/yb-isn.fr\/2021\/nsi\/tom\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"http:\/\/yb-isn.fr\/2021\/nsi\/tom\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":2,"href":"http:\/\/yb-isn.fr\/2021\/nsi\/tom\/wp-json\/wp\/v2\/pages\/14\/revisions"}],"predecessor-version":[{"id":21,"href":"http:\/\/yb-isn.fr\/2021\/nsi\/tom\/wp-json\/wp\/v2\/pages\/14\/revisions\/21"}],"wp:attachment":[{"href":"http:\/\/yb-isn.fr\/2021\/nsi\/tom\/wp-json\/wp\/v2\/media?parent=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}