You are on page 1of 4

1

QUESTIONNAIRE DU TRAVAIL PRATIQUE

2. Algorithme division
Vara, b, quotient, somme
Début
Lire (a, b)
Écrire (‘’saisir deux entiers’’)
Quotient a div b
Reste a modulo b
Écrire (‘’le quotient est’’, quotient)
Écrire (‘’le reste est’’, quotient)
2

RÉSOLUTION DE L’ALGORITHME

Algorithme division
Vara, b, quotient, somme
Début
Lire (a, b)
Écrire (‘’saisir deux entiers’’)
Quotient a div b
Reste a modulo b
Écrire (‘’le quotient est’’, quotient)
Écrire (‘’le reste est’’, quotient)
Somme a+b
Fin
3

ORGANIGRAMME
Début

Veuillez saisir deux entiers

Lire (a, b)

Q a/b

R a modulo b

Écrire (‘’Q est’’, b)

Écrire (‘’R est’’, Q)

S a+b

Fin
4

You might also like