mirror of
https://github.com/arthur-pbty/nsi.git
synced 2026-06-03 23:36:19 +02:00
118 lines
3.3 KiB
HTML
118 lines
3.3 KiB
HTML
|
|
|
|
<html>
|
|
|
|
<head>
|
|
<title>Exercice 4.2</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<meta name="generator" content="HelpNDoc Personal Edition 6.3.0.298">
|
|
<meta name="description" content="" />
|
|
<meta name="keywords" content="">
|
|
|
|
|
|
|
|
<link type="text/css" rel="stylesheet" media="all" href="css/reset.css" />
|
|
<link type="text/css" rel="stylesheet" media="all" href="css/base.css" />
|
|
<link type="text/css" rel="stylesheet" media="all" href="css/hnd.css" />
|
|
<!--[if lte IE 8]>
|
|
<link type="text/css" rel="stylesheet" media="all" href="css/ielte8.css" />
|
|
<![endif]-->
|
|
<style type="text/css">
|
|
#topic_header
|
|
{
|
|
background-color: #EFEFEF;
|
|
}
|
|
</style>
|
|
<script type="text/javascript" src="js/jquery.min.js"></script>
|
|
<script type="text/javascript" src="js/hnd.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function()
|
|
{
|
|
if (top.frames.length == 0)
|
|
{
|
|
var sTopicUrl = top.location.href.substring(top.location.href.lastIndexOf("/") + 1, top.location.href.length);
|
|
top.location.href = "Activite_decouverte_Python.hml?" + sTopicUrl;
|
|
}
|
|
else
|
|
{
|
|
var bTocSelected = false;
|
|
(function waitForTOC()
|
|
{
|
|
if (top && top.FrameTOC && top.FrameTOC.SelectTocItem)
|
|
{
|
|
top.FrameTOC.SelectTocItem("Exercice42");
|
|
bTocSelected = true;
|
|
}
|
|
if (!bTocSelected) setTimeout(function() { waitForTOC(); }, 300);
|
|
})();
|
|
}
|
|
});
|
|
</script>
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
<div id="topic_header">
|
|
<div id="topic_header_content">
|
|
<h1 id="topic_header_text">Exercice 4.2</h1>
|
|
|
|
|
|
<div id="topic_breadcrumb">
|
|
<a href="Lesfonctions.html">Les fonctions</a> ›› <a href="Exercices4.html">Exercices 4</a> ››
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="topic_header_nav">
|
|
|
|
|
|
<a href="Exercices4.html"><img src="img/arrow_up.png" alt="Parent"/></a>
|
|
|
|
|
|
|
|
<a href="Exercice41.html"><img src="img/arrow_left.png" alt="Previous"/></a>
|
|
|
|
|
|
|
|
<a href="Exercice43.html"><img src="img/arrow_right.png" alt="Next"/></a>
|
|
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
</div>
|
|
|
|
|
|
<div id="topic_content">
|
|
|
|
<p></p>
|
|
<p class="rvps7"><span class="rvts12">☆</span><br/><span class="rvts11">1) Ecrire une fonction qui retourne l'aire de la surface d'un disque de rayon R.</span><br/><span class="rvts11">Exemple :</span></p>
|
|
<p class="rvps8"><span class="rvts37">>>></span><span class="rvts38"> </span><span class="rvts40">print</span><span class="rvts38">(airedisque(2.5))</span><br/><span class="rvts41">19.6349540849</span></p>
|
|
<p class="rvps7"><span class="rvts11">2) Ajouter un paramètre qui précise l'unité de mesure :</span></p>
|
|
<p class="rvps8"><span class="rvts37">>>></span><span class="rvts38"> </span><span class="rvts40">print</span><span class="rvts38">(airedisque2(4.2, 'cm'))</span><br/><span class="rvts41">55.4176944093 cm²</span></p>
|
|
<p></p>
|
|
<p class="rvps4" style="clear: both;"><span class="rvts15">Créé avec HelpNDoc Personal Edition: </span><a class="rvts16" href="https://www.helpndoc.com/fr/tour-des-fonctionnalites/creez-des-fichiers-daide-pour-le-framework-qt-help">Créer des fichiers d'aide pour la plateforme Qt Help</a></p>
|
|
|
|
</div>
|
|
|
|
|
|
<div id="topic_footer">
|
|
|
|
<div id="topic_footer_content">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|