AlgoBox : second_degre_algo35
Tester l'algorithme
Cliquer sur ce bouton pour exécuter l'algorithme :
Résultats
Code de l'algorithme
1
VARIABLES
2
x
EST_DU_TYPE
NOMBRE
3
y
EST_DU_TYPE
NOMBRE
4
z
EST_DU_TYPE
NOMBRE
5
s
EST_DU_TYPE
NOMBRE
6
DEBUT_ALGORITHME
7
POUR
x
ALLANT_DE
1 A 100
8
DEBUT_POUR
9
POUR
y
ALLANT_DE
1 A 100
10
DEBUT_POUR
11
s
PREND_LA_VALEUR
pow(x,2)+pow(y,2)
12
z
PREND_LA_VALEUR
floor(sqrt(s))
13
SI
(pow(z,2)==s)
ALORS
14
DEBUT_SI
15
AFFICHER
x
16
AFFICHER
" - "
17
AFFICHER
y
18
AFFICHER
" - "
19
AFFICHER
z
20
FIN_SI
21
FIN_POUR
22
FIN_POUR
23
FIN_ALGORITHME