Professional Documents
Culture Documents
Controle C2 Algo1 G2
Controle C2 Algo1 G2
Fullname :
1 Exercise
1. (2 1/2 points) Write an algorithm to calculate the value of the ex-
pression E :
1 1 1
E = 1+ 1+2 + 1+2+3 + ..... + 1+2+3+...N , avec ( N ≥ 2)
1
2. (2 1/2 points) /
Write an algorithm to find the greatest common divisor of two
positive integers A and B.
Page 2 of 4
3. (3 points) .
A medical laboratory carries out analyses for patients. The result of
each analysis is obtained after a certain number of days, depending
on the nature of the analysis.
1. Write an algorithm that displays the date of the result of an
analysis based on the date of the analysis, the number of days
required for the result of this analysis is given by the user
Page 3 of 4
l
Page 4 of 4