<?xml version="1.0" encoding="UTF-8"?>

<upm-export>
	<title>Enseignement de l&#039;informatique et du numérique au lycée Boissy d&#039;Anglas</title>
	<link>https://icn-isn-boissy.yj.fr/wp</link>
	<description></description>
	<pubDate>Thu May 28 16:23:24 2026 / +0000  GMT</pubDate>
	<generator>Universal Post Manager 1.1.2 [ www.ProfProjects.com ] </generator>
	<language></language>
	
			<item>
			<title>Exercice 3  - Bases de Python</title>
			<link>https://icn-isn-boissy.yj.fr/wp/?p=1818</link>
			<pubDate>Thu May 28 16:23:24 2026 / +0000  GMT</pubDate>
			<guid isPermaLink="false">https://icn-isn-boissy.yj.fr/wp/?p=1818</guid>
			<content-encoded><![CDATA[<!-- wp:heading -->
<h2>Factorielle</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Ecrire un programme qui demande un entier positif n et qui calcule la factorielle de n. Si le nombre donné est strictement négatif, le programme doit afficher un message d'erreur et terminer. Pour les phrases à afficher, vous suivrez celles des exemples suivants.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><em>Rappel: la factorielle de n est définie par: n! = 1 x 2 x 3 x .... x n</em></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong><em>Exemple 1:</em></strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>n=?&nbsp;</strong><em>-5</em><br><strong>La factorielle n'est pas definie pour les nombres négatifs.</strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong><em>Exemple 2:</em></strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>n=? :&nbsp;</strong><em>5</em><br><strong>La factorielle de 5 vaut 120 .</strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong><em>Exemple 3:</em></strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>n=?&nbsp;</strong><em>0</em><br><strong>La factorielle de 0 vaut 1 .</strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Exercice tiré de caséine université de Grenoble - proposé par <em>Aurélie Lagoutte</em> et <em>Amir Charif</em></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><a href="https://icn-isn-boissy.yj.fr/wp/2019/09/11/exercice-4-bases-de-python/"><img class="wp-image-1772" style="width: 100px;" src="https://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2019/08/Suite.jpg" alt=""><br>Exercice 4 - Lettre par lettre</a></p>
<!-- /wp:paragraph -->]]></content-encoded>
			<excerpt-encoded><![CDATA[]]></excerpt-encoded>
			<wp-post_id>1818</wp-post_id>
			<wp-post_date>2019-09-11 14:09:08</wp-post_date>
			<wp-post_date_gmt>2019-09-11 12:09:08</wp-post_date_gmt>
				</item>
</upm-export>
