{"id":3414,"date":"2025-08-01T10:03:25","date_gmt":"2025-08-01T09:03:25","guid":{"rendered":"https:\/\/workboot.fr\/ciela\/?page_id=3414"},"modified":"2026-02-11T17:33:31","modified_gmt":"2026-02-11T16:33:31","slug":"tpc_4-codage","status":"publish","type":"page","link":"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/","title":{"rendered":"TP4_C et les maths"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"alignright size-full is-resized\"><a href=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2026\/01\/symboles-mathematiques-dessines-main_23-2148764926.avif\"><img loading=\"lazy\" decoding=\"async\" width=\"360\" height=\"360\" src=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2026\/01\/symboles-mathematiques-dessines-main_23-2148764926.avif\" alt=\"\" class=\"wp-image-6223\" style=\"width:204px;height:auto\"\/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udd52 : 3 h maximum<\/p>\n\n\n\n<nav aria-label=\"Table des mati\u00e8res\" class=\"wp-block-table-of-contents\"><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#prerequis\">Pr\u00e9requis:<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#prerequis\">But:<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#repertoire\">R\u00e9pertoire:<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#table-de-multiplications\">Table de multiplications<\/a><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#verifiez-si-argc-est-correct-sinon-affichez-un-message-d-erreur\">V\u00e9rifiez si\u00a0argc\u00a0est correct (sinon, affichez un message d&rsquo;erreur).<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#utilisez-argv-1-pour-recuperer-l-entier\">Utilisez\u00a0argv[1]\u00a0pour r\u00e9cup\u00e9rer l\u2019entier.<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#avec-monia-donner-un-algorithme-et-un-pseudo-langage-pl\">Avec Monia donner un algorithme et un Pseudo Langage (PL)<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#affichez-la-table-avec-une-boucle-for-en-langage-c-ansi-k-r\">Affichez la table avec une boucle\u00a0for en langage C ansi K&amp;R <\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#tests\">Tests :<\/a><\/li><\/ol><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#extraction-de-racine-carre-square-root\">Extraction de racine carr\u00e9 (SQuare Root) <\/a><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#avec-gdb-comprendre-le-fonctionnement-du-code-c-de-sqr\">Avec gdb comprendre le fonctionnement du code C de sqr<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#avec-monia-donner-l-algorithme-et-le-pl-du-code-c-de-sqr\">avec Monia donner l&rsquo;algorithme et le PL du code C de sqr <\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#saisir-ce-code-et-tester\">Saisir ce code et tester <\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#augmenter-le-nombre-d-estimation\">Augmenter le nombre d&rsquo;estimation<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#combien-de-temps\">Combien de temps  ?<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#conclure-sur-l-extraction-de-la-racine-avec-la-methode-heron\">conclure sur l&rsquo;extraction de la racine avec la m\u00e9thode h\u00e9ron<\/a><\/li><\/ol><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#nombres-premiers\">Nombres premiers<\/a><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#definition-mathematique-d-un-nombre-premier\">D\u00e9finition Math\u00e9matique d&rsquo;un Nombre Premier<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#travail-final-pour-arriver-la-il-faudra-faire-les-versions-v1-jusqu-a-v3\">Travail final :  pour arriver la il faudra faire les versions v1 jusqu\u2019\u00e0 v3<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#v1-code-naif-tester-tous-les-diviseurs-de-2-a-n-1\">V1 Code Na\u00eff (Tester tous les diviseurs de 2 \u00e0 n-1)<\/a><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#verifiez-que-n-est-bien-un-nombre-valide-1\">V\u00e9rifiez que\u00a0n\u00a0est bien un nombre valide (> 1).<\/a><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#ecrire-un-programme-premier-c-qui-verifie-si-un-nombre-n-est-premier-en-testant-tous-les-diviseurs-entre-2-et-n-1\">\u00c9crire un programme\u00a0premier.c\u00a0qui v\u00e9rifie si un nombre\u00a0n\u00a0est premier en testant\u00a0tous les diviseurs entre 2 et n-1.<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#avec-monia-donner-l-organigramme-et-le-pl\">Avec Monia donner l&rsquo;organigramme et le PL<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#traduire-le-pl-en-langage-c\">Traduire le PL en langage C<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#compiler-et-mesurer-le-temps-d-execution-avec-la-commande-time\">Compiler et mesurer le temps d\u2019ex\u00e9cution avec la commande\u00a0time.<\/a><\/li><\/ol><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#utilisez-gdb-pour-observer-comment-les-boucles-s-executent\">Utilisez GDB pour observer comment les boucles s&rsquo;ex\u00e9cutent.<\/a><\/li><\/ol><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#implementez-un-algorithme-simple-testez-les-diviseurs-de-2-a-n\">V2 Impl\u00e9mentez un algorithme simple (testez les diviseurs de 2 \u00e0 n\/2).<\/a><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#reprendre-le-code-precedent-et-le-modifier\">Reprendre le code pr\u00e9c\u00e9dent et le modifier<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#avec-monia-donner-l-organigramme-et-le-pl-1\">Avec Monia donner l\u2019organigramme et le PL<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#compiler-et-mesurer-le-temps-d-execution-avec-la-commande-time-1\">Compiler et mesurer le temps d\u2019ex\u00e9cution avec la commande\u00a0time.<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#utilisez-gdb-pour-observer-comment-les-boucles-s-executent-1\">Utilisez GDB pour observer comment les boucles s\u2019ex\u00e9cutent.<\/a><\/li><\/ol><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#implementez-un-algorithme-simple-testez-les-diviseurs-de-2-a-n\">V3 Impl\u00e9mentez un algorithme simple (testez les diviseurs de 2 \u00e0 \u221an).<\/a><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#reprendre-le-code-precedent-et-le-modifier\">Reprendre le code pr\u00e9c\u00e9dent et le modifier<\/a><\/li><\/ol><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#exemple-extraction-de-la-racine-de-25-avec-la-fonction-sqrt-de-la-librairie-math-h\">Exemple extraction de la racine de 25 avec la fonction sqrt de la librairie math.h<\/a><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#avec-monia-donner-l-organigramme-et-le-pl-1\">Avec Monia donner l&rsquo;organigramme et le PL<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#compiler-et-mesurer-le-temps-d-execution-avec-la-commande-time-1\">Compiler et mesurer le temps d\u2019ex\u00e9cution avec la commande\u00a0time.<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#utilisez-gdb-pour-observer-comment-les-boucles-s-executent-1\">Utilisez GDB pour observer comment les boucles s&rsquo;ex\u00e9cutent.<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#expliquer-pourquoi-la-v3-est-mieux-que-les-autres-versions\">Expliquer pourquoi la v3 est mieux que les autres versions<\/a><\/li><\/ol><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#donner-la-version-finale\">Donner la version finale <\/a><\/li><\/ol><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#suite-de-fibonacci\">SUITE de Fibonacci<\/a><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#definition-de-la-suite-de-fibonacci\">D\u00e9finition de la Suite de Fibonacci<\/a><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#definition-mathematique\">D\u00e9finition math\u00e9matique :<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#exemple-des-premiers-termes\">exemple des premiers termes :<\/a><\/li><\/ol><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#le-nombre-d-or-le-rapportn-fn-1-fn\">Le nombre d&rsquo;or <\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#avec-monia-donner-l-algorithme-et-le-pl-de-code-c-1\">avec Monia donner l&rsquo;algorithme et le PL de code C<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#traduire-en-c-le-pl\">Traduire en C le PL<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#proposer-votre-solution-compiler-et-tester\">Proposer votre solution , compiler et tester<\/a><\/li><\/ol><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#tester-la-valeur-1000\">tester la valeur 1000<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#explication-du-resultat-avec-1000\">Explication du r\u00e9sultat avec 1000<\/a><\/li><\/ol><\/nav>\n\n\n\n<h2 id=\"prerequis\" class=\"wp-block-heading\">Pr\u00e9requis:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>cours gcc, gdb, <a href=\"https:\/\/workboot.fr\/ciela\/les-structures-en-langage-c\/\">structures de contr\u00f4les<\/a> <\/li>\n\n\n\n<li>lib <a href=\"https:\/\/workboot.fr\/ciela\/math-h\/\" type=\"page\" id=\"6342\">math.h<\/a><\/li>\n<\/ul>\n\n\n\n<h2 id=\"prerequis\" class=\"wp-block-heading\">But:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>apprendre \u00e0 coder <\/li>\n\n\n\n<li>lib math.h<\/li>\n<\/ul>\n\n\n\n<h2 id=\"repertoire\" class=\"wp-block-heading\">R\u00e9pertoire:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">~\/Works\/TP4_C<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h2 id=\"table-de-multiplications\" class=\"wp-block-heading\">Table de multiplications<\/h2>\n\n\n\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-8f761849 wp-block-group-is-layout-flex\">\n<p class=\"wp-block-paragraph\">r\u00e9pertoire: multiplication , code: multiplication.c<\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u00c9crire un programme&nbsp;<code>multiplication.c<\/code>&nbsp;qui affiche la table de multiplication d&rsquo;un nombre pass\u00e9 en argument.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright size-large is-resized\"><a href=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2026\/01\/Tables-de-multiplication-banniere.PNG-scaled-1.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"376\" src=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2026\/01\/Tables-de-multiplication-banniere.PNG-scaled-1-1024x376.jpg\" alt=\"\" class=\"wp-image-6220\" style=\"width:318px;height:auto\" srcset=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2026\/01\/Tables-de-multiplication-banniere.PNG-scaled-1-1024x376.jpg 1024w, https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2026\/01\/Tables-de-multiplication-banniere.PNG-scaled-1-300x110.jpg 300w, https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2026\/01\/Tables-de-multiplication-banniere.PNG-scaled-1-768x282.jpg 768w, https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2026\/01\/Tables-de-multiplication-banniere.PNG-scaled-1-1536x563.jpg 1536w, https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2026\/01\/Tables-de-multiplication-banniere.PNG-scaled-1-2048x751.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">R\u00e9pertoire: multiplication, code : multiplication.c<br>Exemple d&rsquo;utilisation :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/multiplication 5\n5 x 0 = 0\n5 x 1 = 5\n5 x 2 = 10\n5 x 3 = 15\n5 x 4 = 20\n5 x 5 = 25\n5 x 6 = 30\n5 x 7 = 35\n5 x 8 = 40\n5 x 9 = 45\n.\/multiplication\nVeuillez me donner une valeur enti\u00e8re comprise entre 1 et 9 uniquement en param\u00e8tre.\n.\/multiplication 11\nVeuillez me donner une valeur enti\u00e8re comprise entre 1 et 9 uniquement en param\u00e8tre.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Affiche la table de 5 jusqu\u2019\u00e0 5 x 9. (c&rsquo;est un exemple)<\/p>\n\n\n\n<h4 id=\"verifiez-si-argc-est-correct-sinon-affichez-un-message-d-erreur\" class=\"wp-block-heading\">V\u00e9rifiez si&nbsp;<code>argc<\/code>&nbsp;est correct (sinon, affichez un message d&rsquo;erreur).<\/h4>\n\n\n\n<h4 id=\"utilisez-argv-1-pour-recuperer-l-entier\" class=\"wp-block-heading\">Utilisez&nbsp;<code>argv[1]<\/code>&nbsp;pour r\u00e9cup\u00e9rer l\u2019entier.<\/h4>\n\n\n\n<h4 id=\"avec-monia-donner-un-algorithme-et-un-pseudo-langage-pl\" class=\"wp-block-heading\">Avec Monia donner un algorithme et un Pseudo Langage (PL)<\/h4>\n\n\n\n<h4 id=\"affichez-la-table-avec-une-boucle-for-en-langage-c-ansi-k-r\" class=\"wp-block-heading\">Affichez la table avec une boucle&nbsp;<code>for<\/code> en langage C ansi K&amp;R<br><\/h4>\n\n\n\n<h4 id=\"tests\" class=\"wp-block-heading\"><strong>Tests :<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Lancez le programme avec diff\u00e9rents arguments.<\/li>\n\n\n\n<li>Utilisez GDB pour v\u00e9rifier la valeur de&nbsp;<code>argv[1]<\/code>.<\/li>\n<\/ul>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-separator uagb-block-5fe49586\"><div class=\"wp-block-uagb-separator__inner\" style=\"--my-background-image:\"><\/div><\/div>\n\n\n\n<h2 id=\"extraction-de-racine-carre-square-root\" class=\"wp-block-heading\">Extraction de racine carr\u00e9 (SQuare Root) <\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Ce code calcule la racine carr\u00e9e d&rsquo;un nombre en utilisant la&nbsp;<strong>m\u00e9thode de H\u00e9ron<\/strong>&nbsp;(ou m\u00e9thode babylonienne), un algorithme ancien mais tr\u00e8s efficace.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright size-full\"><a href=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2026\/01\/sqr-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"196\" height=\"184\" src=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2026\/01\/sqr-1.png\" alt=\"\" class=\"wp-image-6227\"\/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/fr.wikipedia.org\/wiki\/M%C3%A9thode_de_H%C3%A9ron\">wikip\u00e9dia m\u00e9thode de H\u00e9ron<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">r\u00e9pertoire sqr , code sqr.c<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/*\n .----------------.  .----------------.  .----------------. \n| .--------------. || .--------------. || .--------------. |\n| |    _______   | || |    ___       | || |  _______     | |\n| |   \/  ___  |  | || |  .'   '.     | || | |_   __ \\    | |\n| |  |  (__ \\_|  | || | \/  .-.  \\    | || |   | |__) |   | |\n| |   '.___`-.   | || | | |   | |    | || |   |  __ \/    | |\n| |  |`\\____) |  | || | \\  `-'  \\_   | || |  _| |  \\ \\_  | |\n| |  |_______.'  | || |  `.___.\\__|  | || | |____| |___| | |\n| |              | || |              | || |              | |\n| '--------------' || '--------------' || '--------------' |\n '----------------'  '----------------'  '----------------' \n *\/\n#include &lt;stdio.h>\n#include &lt;stdlib.h>\n\n#define nb_estimation 10\n\nint main(int argc, char *argv[]) \n{\ndouble nombre;\ndouble estimation;\nint cpt;  \/* entier  compteur de boucle *\/\n\n\/* il faut au moins un argument *\/ \n    if (argc != 2) \n    {\n        puts(\"Erreur: Un argument attendu (ex: .\/racine 25)\");\n        return EXIT_FAILURE;\n    }\n\/* on d\u00e9termine le nombre en flottant  pass\u00e9 en argument *\/\n    nombre=atof(argv[1]); \n    if (nombre &lt; 0) \n    {\n        puts(\"Erreur: Nombre invalide (doit \u00eatre positif)\");\n        return EXIT_FAILURE;\n    }\n\/* estimation de la racine de nombre *\/\n    estimation = nombre;\n    for (cpt = 0; cpt &lt; nb_estimation; cpt++) \n    {\n        estimation = (estimation + (nombre \/ estimation)) \/ 2.0;\n    }\n\n    printf(\"Racine de %s = %.5f\\n\", argv[1], estimation);\n    return EXIT_SUCCESS;\n}<\/pre>\n\n\n\n<h3 id=\"avec-gdb-comprendre-le-fonctionnement-du-code-c-de-sqr\" class=\"wp-block-heading\">Avec gdb comprendre le fonctionnement du code C de sqr<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">tester avec 25 par exemple , puis 24<\/p>\n\n\n\n<h3 id=\"avec-monia-donner-l-algorithme-et-le-pl-du-code-c-de-sqr\" class=\"wp-block-heading\">avec Monia donner l&rsquo;algorithme et le PL du code C de sqr <\/h3>\n\n\n\n<h3 id=\"saisir-ce-code-et-tester\" class=\"wp-block-heading\">Saisir ce code et tester <\/h3>\n\n\n\n<h3 id=\"augmenter-le-nombre-d-estimation\" class=\"wp-block-heading\">Augmenter le nombre d&rsquo;estimation<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">on va modifier le nombre d&rsquo;estimation \u00e0  100 millions , ou 0.1 milliard d&rsquo;estimation au lieu de 10 , l&rsquo;ordinateur n&rsquo;est pas regardant.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#define nb_estimation 100000000<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>bruno@elliott:~\/Works\/langage_C\/sqr$ gcc sqr.c -o sqr -Wall -ansi -pedantic -g\nbruno@elliott:~\/Works\/langage_C\/sqr$ time .\/sqr 25\nRacine de 25 = 5.00000\n\n<strong>real\t0m0,007s<\/strong>\nuser\t0m0,001s\nsys\t0m0,006s\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Le temps real (r\u00e9el) nous int\u00e9resse ici .<\/p>\n\n\n\n<h3 id=\"combien-de-temps\" class=\"wp-block-heading\">Combien de temps  ?<\/h3>\n\n\n\n<h3 id=\"conclure-sur-l-extraction-de-la-racine-avec-la-methode-heron\" class=\"wp-block-heading\">conclure sur l&rsquo;extraction de la racine avec la m\u00e9thode h\u00e9ron<\/h3>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 id=\"nombres-premiers\" class=\"wp-block-heading\"><strong>Nombres premiers<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">r\u00e9pertoire : premier <\/p>\n\n\n\n<h3 id=\"definition-mathematique-d-un-nombre-premier\" class=\"wp-block-heading\"><strong>D\u00e9finition Math\u00e9matique d&rsquo;un Nombre Premier<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Un&nbsp;<strong>nombre premier<\/strong>&nbsp;est un&nbsp;<strong>entier naturel sup\u00e9rieur ou \u00e9gal \u00e0 2<\/strong>&nbsp;qui admet exactement&nbsp;<strong>deux diviseurs distincts<\/strong>&nbsp;:&nbsp;<strong>1 et lui-m\u00eame<\/strong>.<\/p>\n\n\n\n<h3 id=\"travail-final-pour-arriver-la-il-faudra-faire-les-versions-v1-jusqu-a-v3\" class=\"wp-block-heading\">Travail final :  pour arriver la il faudra faire les versions v1 jusqu\u2019\u00e0 v3<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u00c9crire un programme&nbsp;<code>premiers.c<\/code>&nbsp;qui affiche tous les nombres premiers jusqu&rsquo;\u00e0&nbsp;<code>N<\/code>&nbsp;(pass\u00e9 en argument).<br>Exemple :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/premiers 20<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">R\u00e9sultat attendu:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>2, 3, 5, 7, 11, 13, 17, 19<\/code><\/pre>\n\n\n\n<div class=\"wp-block-uagb-separator uagb-block-d7045a52\"><div class=\"wp-block-uagb-separator__inner\" style=\"--my-background-image:\"><\/div><\/div>\n\n\n\n<h3 id=\"v1-code-naif-tester-tous-les-diviseurs-de-2-a-n-1\" class=\"wp-block-heading\">V1 <strong>Code Na\u00eff (Tester tous les diviseurs de <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">2 \u00e0 n-1<\/mark>)<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">r\u00e9petoire : v1 , code premier.c<\/p>\n\n\n\n<h4 id=\"verifiez-que-n-est-bien-un-nombre-valide-1\" class=\"wp-block-heading\">V\u00e9rifiez que&nbsp;n&nbsp;est bien un nombre valide (&gt; 1).<\/h4>\n\n\n\n<h5 id=\"ecrire-un-programme-premier-c-qui-verifie-si-un-nombre-n-est-premier-en-testant-tous-les-diviseurs-entre-2-et-n-1\" class=\"wp-block-heading\">\u00c9crire un programme&nbsp;<code>premier.c<\/code>&nbsp;qui v\u00e9rifie si un nombre&nbsp;<code>n<\/code>&nbsp;est premier en testant&nbsp;<strong>tous les diviseurs entre 2 et n-1<\/strong>.<\/h5>\n\n\n\n<h5 id=\"avec-monia-donner-l-organigramme-et-le-pl\" class=\"wp-block-heading\">Avec Monia donner l&rsquo;organigramme et le PL<\/h5>\n\n\n\n<h5 id=\"traduire-le-pl-en-langage-c\" class=\"wp-block-heading\">Traduire le PL en langage C<\/h5>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>Code attendu exemple ; premier.c ,prenez le votre c&rsquo;est pr\u00e9f\u00e9rable .<\/summary>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/*\n      ___.                                  .__                      .__               .__          \n  ____\\_ |__   _____________   ____   _____ |__| ___________    _____|__| _____ ______ |  |   ____  \n \/    \\| __ \\  \\____ \\_  __ \\_\/ __ \\ \/     \\|  |\/ __ \\_  __ \\  \/  ___\/  |\/     \\\\____ \\|  | _\/ __ \\ \n|   |  \\ \\_\\ \\ |  |_> >  | \\\/\\  ___\/|  Y Y  \\  \\  ___\/|  | \\\/  \\___ \\|  |  Y Y  \\  |_> >  |_\\  ___\/ \n|___|  \/___  \/ |   __\/|__|    \\___  >__|_|  \/__|\\___  >__|    \/____  >__|__|_|  \/   __\/|____\/\\___  >\n     \\\/    \\\/  |__|               \\\/      \\\/        \\\/             \\\/         \\\/|__|             \\\/ \n*\/\n#include &lt;stdio.h>\n#include &lt;stdlib.h>\n\nint main(int argc, char *argv[]) \n{\nint cpt;\nint n;\nint est_premier;\n\n    if (argc != 2) \n    {\n        fprintf(stderr, \"Usage: %s &lt;nombre>\\n\", argv[0]);\n        return EXIT_FAILURE;\n    }\n\n    n = atoi(argv[1]); \/* on r\u00e9cup\u00e8re la valeur enti\u00e8re pass\u00e9e *\/\n    est_premier = 1;   \/* flag mis *\/\n\n    for (cpt = 2; cpt &lt; n; cpt++) \n    {\n        if (n % cpt == 0) \n        {\n            est_premier = 0;\n            break;    \/* on casse la boucle car pas premier ! *\/\n        }\n    }\n\n    if (est_premier)\n\t   printf (\"%d est premier \\n\",n);\n    else \n\t   printf (\"%d n'est pas premier \\n\",n);\n    return EXIT_SUCCESS;\n}<\/pre>\n<\/details>\n\n\n\n<h5 id=\"compiler-et-mesurer-le-temps-d-execution-avec-la-commande-time\" class=\"wp-block-heading\">Compiler et mesurer le temps d\u2019ex\u00e9cution avec la commande&nbsp;<code>time<\/code>.<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/premier 2147483647\n# c'est long !! mais mesurons avec la fonction time\ntime .\/premier 2147483647<\/code><\/pre>\n\n\n\n<h4 id=\"utilisez-gdb-pour-observer-comment-les-boucles-s-executent\" class=\"wp-block-heading\">Utilisez GDB pour observer comment les boucles s&rsquo;ex\u00e9cutent.<\/h4>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-separator uagb-block-3c80657f\"><div class=\"wp-block-uagb-separator__inner\" style=\"--my-background-image:\"><\/div><\/div>\n\n\n\n<h3 id=\"implementez-un-algorithme-simple-testez-les-diviseurs-de-2-a-n\" class=\"wp-block-heading\">V2 Impl\u00e9mentez un algorithme simple (testez les diviseurs de <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">2 \u00e0 n\/2<\/mark>).<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">r\u00e9pertoire v2 , code: premier.c<\/p>\n\n\n\n<h4 id=\"reprendre-le-code-precedent-et-le-modifier\" class=\"wp-block-heading\">Reprendre le code pr\u00e9c\u00e9dent et le modifier<\/h4>\n\n\n\n<h4 id=\"avec-monia-donner-l-organigramme-et-le-pl-1\" class=\"wp-block-heading\">Avec Monia donner l\u2019organigramme et le PL<\/h4>\n\n\n\n<h4 id=\"compiler-et-mesurer-le-temps-d-execution-avec-la-commande-time-1\" class=\"wp-block-heading\">Compiler et mesurer le temps d\u2019ex\u00e9cution avec la commande&nbsp;<code>time<\/code>.<\/h4>\n\n\n\n<h4 id=\"utilisez-gdb-pour-observer-comment-les-boucles-s-executent-1\" class=\"wp-block-heading\">Utilisez GDB pour observer comment les boucles s\u2019ex\u00e9cutent.<\/h4>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-separator uagb-block-46058187\"><div class=\"wp-block-uagb-separator__inner\" style=\"--my-background-image:\"><\/div><\/div>\n\n\n\n<h3 id=\"implementez-un-algorithme-simple-testez-les-diviseurs-de-2-a-n\" class=\"wp-block-heading\">V3 Impl\u00e9mentez un algorithme simple (testez les diviseurs de <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">2 \u00e0 \u221an<\/mark>).<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><code>\u221aN<\/code>&nbsp;est la vraie optimisation<\/strong>&nbsp;\u00e0 privil\u00e9gier pour des performances optimales. tester au dessus de racine de n , \u00e7a ne sert \u00e0 rien.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">r\u00e9pertoire v3 , code: premier.c<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 id=\"reprendre-le-code-precedent-et-le-modifier\" class=\"wp-block-heading\">Reprendre le code pr\u00e9c\u00e9dent et le modifier<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">on d\u00e9couvre  ici sqrt:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">En C, la fonction&nbsp;<code>sqrt()<\/code>&nbsp;(racine carr\u00e9e) est d\u00e9finie dans la biblioth\u00e8que&nbsp;<strong><code>&lt;math.h&gt;<\/code><\/strong>. Elle prend un argument de type&nbsp;<strong><code>double<\/code><\/strong>&nbsp;et retourne un&nbsp;<strong><code>double<\/code><\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">il faut ajouter l&rsquo;option <strong>-lm<\/strong> lors de la compilation avec gcc , <code>libm<\/code>&nbsp;est s\u00e9par\u00e9e pour des raisons historiques (\u00e9conomiser de la m\u00e9moire sur les anciens syst\u00e8mes).<\/p>\n\n\n\n<h3 id=\"exemple-extraction-de-la-racine-de-25-avec-la-fonction-sqrt-de-la-librairie-math-h\" class=\"wp-block-heading\">Exemple extraction de la racine de 25 avec la fonction sqrt de la librairie math.h<\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\n#include &lt;math.h&gt;\n#include &lt;stdio.h&gt;\n#include &lt;stdlib.h&gt;\n\n\nint main()\n{\ndouble racine;\nracine= sqrt (25);\nprintf(&quot;La racine de 25 donne : %f \\n&quot;,racine);\nreturn EXIT_SUCCESS;\n}\n<\/pre><\/div>\n\n\n<pre class=\"wp-block-code\"><code>bruno@elliott:~\/Works\/langage_C\/sqrt$ gcc sqrt.c -o sqrt <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">-lm<\/mark> -ansi -Wall -pedantic -g\nbruno@elliott:~\/Works\/langage_C\/sqrt$ \nbruno@elliott:~\/Works\/langage_C\/sqrt$ ls\nsqrt  sqrt.c\nbruno@elliott:~\/Works\/langage_C\/sqrt$ .\/sqrt \nLa racine de 25 donne : 5.000000 \nbruno@elliott:~\/Works\/langage_C\/sqrt$\n<\/code><\/pre>\n\n\n\n<h4 id=\"avec-monia-donner-l-organigramme-et-le-pl-1\" class=\"wp-block-heading\">Avec Monia donner l&rsquo;organigramme et le PL<\/h4>\n\n\n\n<h4 id=\"compiler-et-mesurer-le-temps-d-execution-avec-la-commande-time-1\" class=\"wp-block-heading\">Compiler et mesurer le temps d\u2019ex\u00e9cution avec la commande&nbsp;<code>time<\/code>.<\/h4>\n\n\n\n<h4 id=\"utilisez-gdb-pour-observer-comment-les-boucles-s-executent-1\" class=\"wp-block-heading\">Utilisez GDB pour observer comment les boucles s&rsquo;ex\u00e9cutent.<\/h4>\n\n\n\n<h4 id=\"expliquer-pourquoi-la-v3-est-mieux-que-les-autres-versions\" class=\"wp-block-heading\">Expliquer pourquoi la v3 est mieux que les autres versions<\/h4>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 id=\"donner-la-version-finale\" class=\"wp-block-heading\">Donner la version finale <\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/premiers 20\n2, 3, 5, 7, 11, 13, 17, 19<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Organigramme , PL et code C <\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 id=\"suite-de-fibonacci\" class=\"wp-block-heading\">SUITE de Fibonacci<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">R\u00e9pertoire: fibo , code : fibo.c<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright size-large is-resized\"><a href=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2026\/01\/Fibonacci-spiral-nature-sunflower.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"623\" src=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2026\/01\/Fibonacci-spiral-nature-sunflower-1024x623.jpg\" alt=\"\" class=\"wp-image-6237\" style=\"aspect-ratio:1.6437431651304484;width:374px;height:auto\" srcset=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2026\/01\/Fibonacci-spiral-nature-sunflower-1024x623.jpg 1024w, https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2026\/01\/Fibonacci-spiral-nature-sunflower-300x183.jpg 300w, https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2026\/01\/Fibonacci-spiral-nature-sunflower-768x467.jpg 768w, https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2026\/01\/Fibonacci-spiral-nature-sunflower-1536x935.jpg 1536w, https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2026\/01\/Fibonacci-spiral-nature-sunflower-2048x1246.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n\n\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-8f761849 wp-block-group-is-layout-flex\">\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/fr.wikipedia.org\/wiki\/Suite_de_Fibonacci\">wikipedia suite de Fibonacci<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-8f761849 wp-block-group-is-layout-flex\">\n<h3 id=\"definition-de-la-suite-de-fibonacci\" class=\"wp-block-heading\"><strong>D\u00e9finition de la Suite de Fibonacci<\/strong><\/h3>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">La&nbsp;<strong>suite de Fibonacci<\/strong>&nbsp;est une s\u00e9quence de nombres entiers o\u00f9 chaque terme est la somme des deux termes pr\u00e9c\u00e9dents. Elle est d\u00e9finie par r\u00e9currence de la mani\u00e8re suivante :<\/p>\n\n\n\n<h4 id=\"definition-mathematique\" class=\"wp-block-heading\"><strong>D\u00e9finition math\u00e9matique :<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><em>F<\/em><sub>0\u200b<\/sub>=0<em>,  F<\/em><sub>1\u200b<\/sub>=1, <em>F<sub>n<\/sub><\/em>\u200b=<em>F<\/em><sub><em>n<\/em>\u22121<\/sub>\u200b+<em>F<\/em><sub><em>n<\/em>\u22122\u200b<\/sub>     <mark style=\"background-color:rgba(0, 0, 0, 0);color:#cf2e2e\" class=\"has-inline-color\">pour<em>n<\/em> \u2265 2\u200b<\/mark><\/p>\n\n\n\n<h4 id=\"exemple-des-premiers-termes\" class=\"wp-block-heading\"><strong>exemple des premiers termes :<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">0,\u2005\u200a1,\u2005\u200a1,\u2005\u200a2,\u2005\u200a3,\u2005\u200a5,\u2005\u200a8,\u2005\u200a13,\u2005\u200a21,\u2005\u200a34,\u2005\u200a55,\u2005\u200a89,\u2005\u200a144,\u2005\u200a\u2026<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Lien avec le nombre d\u2019or (\u03c6)<\/strong>&nbsp;:<\/p>\n\n\n\n<h3 id=\"le-nombre-d-or-le-rapportn-fn-1-fn\" class=\"wp-block-heading\">Le nombre d&rsquo;or <\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Le rapportn\u200b\u200b&nbsp;F<sub>n+1<\/sub> \/ F<sub>n\u200b\u200b&nbsp;<\/sub><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">converge vers le&nbsp;<strong>nombre d\u2019or<\/strong>&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright size-full\"><a href=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2026\/01\/vitruv.jpeg\"><img loading=\"lazy\" decoding=\"async\" width=\"188\" height=\"268\" src=\"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2026\/01\/vitruv.jpeg\" alt=\"homme de Vitruv\" class=\"wp-image-6240\"\/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">\u03d5=\u200b\u200b&nbsp;F<sub>n+1<\/sub> \/ F<sub>n\u200b\u200b&nbsp;<\/sub>\u2248<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">1,6180339887<\/mark> lorsque&nbsp;n &nbsp;tend vers l&rsquo;infini.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>nombre d\u2019or<\/strong>&nbsp;\u03d5=(1+sqr (5))\/2\u22481,6180339887<\/p>\n\n\n\n<h3 id=\"avec-monia-donner-l-algorithme-et-le-pl-de-code-c-1\" class=\"wp-block-heading\">avec Monia donner l&rsquo;algorithme et le PL de code C<\/h3>\n\n\n\n<h3 id=\"traduire-en-c-le-pl\" class=\"wp-block-heading\">Traduire en C le PL<\/h3>\n\n\n\n<h3 id=\"proposer-votre-solution-compiler-et-tester\" class=\"wp-block-heading\">Proposer votre solution , compiler et tester<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>\u279c  fibo .\/fibo 20\nSuite de Fibonacci:\n0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 \n\nEstimation de phi (nombre d'or): 1.618034055727554\nValeur theorique de phi: 1.618033988749895<\/code><\/pre>\n\n\n\n<h2 id=\"tester-la-valeur-1000\" class=\"wp-block-heading\">tester la valeur 1000<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>\u279c fibo .\/fibo 1000<\/code><\/pre>\n\n\n\n<h2 id=\"explication-du-resultat-avec-1000\" class=\"wp-block-heading\">Explication du r\u00e9sultat avec 1000<\/h2>\n","protected":false},"excerpt":{"rendered":"<p>\ud83d\udd52 : 3 h maximum Pr\u00e9requis: But: R\u00e9pertoire: ~\/Works\/TP4_C Table de multiplications r\u00e9pertoire: multiplication , code: multiplication.c \u00c9crire un programme&nbsp;multiplication.c&nbsp;qui affiche la table de multiplication d&rsquo;un nombre pass\u00e9 en argument. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","_uag_custom_page_level_css":"","footnotes":""},"class_list":["post-3414","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>TP4_C et les maths - workboot<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"TP4_C et les maths - workboot\" \/>\n<meta property=\"og:description\" content=\"\ud83d\udd52 : 3 h maximum Pr\u00e9requis: But: R\u00e9pertoire: ~\/Works\/TP4_C Table de multiplications r\u00e9pertoire: multiplication , code: multiplication.c \u00c9crire un programme&nbsp;multiplication.c&nbsp;qui affiche la table de multiplication d&rsquo;un nombre pass\u00e9 en argument. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/\" \/>\n<meta property=\"og:site_name\" content=\"workboot\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-11T16:33:31+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data1\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/tpc_4-codage\\\/\",\"url\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/tpc_4-codage\\\/\",\"name\":\"TP4_C et les maths - workboot\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/tpc_4-codage\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/tpc_4-codage\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/symboles-mathematiques-dessines-main_23-2148764926.avif\",\"datePublished\":\"2025-08-01T09:03:25+00:00\",\"dateModified\":\"2026-02-11T16:33:31+00:00\",\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/workboot.fr\\\/ciela\\\/tpc_4-codage\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/tpc_4-codage\\\/#primaryimage\",\"url\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/symboles-mathematiques-dessines-main_23-2148764926.avif\",\"contentUrl\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/symboles-mathematiques-dessines-main_23-2148764926.avif\",\"width\":360,\"height\":360},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/#website\",\"url\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/\",\"name\":\"workboot\",\"description\":\"Open Source, Open Minds \",\"publisher\":{\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/#organization\",\"name\":\"workboot\",\"url\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/logo_ciel-dorian-1.png\",\"contentUrl\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/logo_ciel-dorian-1.png\",\"width\":1024,\"height\":950,\"caption\":\"workboot\"},\"image\":{\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"TP4_C et les maths - workboot","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/","og_locale":"fr_FR","og_type":"article","og_title":"TP4_C et les maths - workboot","og_description":"\ud83d\udd52 : 3 h maximum Pr\u00e9requis: But: R\u00e9pertoire: ~\/Works\/TP4_C Table de multiplications r\u00e9pertoire: multiplication , code: multiplication.c \u00c9crire un programme&nbsp;multiplication.c&nbsp;qui affiche la table de multiplication d&rsquo;un nombre pass\u00e9 en argument. [&hellip;]","og_url":"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/","og_site_name":"workboot","article_modified_time":"2026-02-11T16:33:31+00:00","twitter_misc":{"Dur\u00e9e de lecture estim\u00e9e":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/","url":"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/","name":"TP4_C et les maths - workboot","isPartOf":{"@id":"https:\/\/workboot.fr\/ciela\/#website"},"primaryImageOfPage":{"@id":"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#primaryimage"},"image":{"@id":"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#primaryimage"},"thumbnailUrl":"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2026\/01\/symboles-mathematiques-dessines-main_23-2148764926.avif","datePublished":"2025-08-01T09:03:25+00:00","dateModified":"2026-02-11T16:33:31+00:00","inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/workboot.fr\/ciela\/tpc_4-codage\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/#primaryimage","url":"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2026\/01\/symboles-mathematiques-dessines-main_23-2148764926.avif","contentUrl":"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2026\/01\/symboles-mathematiques-dessines-main_23-2148764926.avif","width":360,"height":360},{"@type":"WebSite","@id":"https:\/\/workboot.fr\/ciela\/#website","url":"https:\/\/workboot.fr\/ciela\/","name":"workboot","description":"Open Source, Open Minds ","publisher":{"@id":"https:\/\/workboot.fr\/ciela\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/workboot.fr\/ciela\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/workboot.fr\/ciela\/#organization","name":"workboot","url":"https:\/\/workboot.fr\/ciela\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/workboot.fr\/ciela\/#\/schema\/logo\/image\/","url":"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/05\/logo_ciel-dorian-1.png","contentUrl":"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/05\/logo_ciel-dorian-1.png","width":1024,"height":950,"caption":"workboot"},"image":{"@id":"https:\/\/workboot.fr\/ciela\/#\/schema\/logo\/image\/"}}]}},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"admin","author_link":"https:\/\/workboot.fr\/ciela\/author\/admin\/"},"uagb_comment_info":0,"uagb_excerpt":"\ud83d\udd52 : 3 h maximum Pr\u00e9requis: But: R\u00e9pertoire: ~\/Works\/TP4_C Table de multiplications r\u00e9pertoire: multiplication , code: multiplication.c \u00c9crire un programme&nbsp;multiplication.c&nbsp;qui affiche la table de multiplication d&rsquo;un nombre pass\u00e9 en argument. [&hellip;]","_links":{"self":[{"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/pages\/3414","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/comments?post=3414"}],"version-history":[{"count":94,"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/pages\/3414\/revisions"}],"predecessor-version":[{"id":6704,"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/pages\/3414\/revisions\/6704"}],"wp:attachment":[{"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/media?parent=3414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}