Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

University of Laghouat

Faculty of Sciences / Computer science department

1 st year computer license – ADS 1


Evaluation control (2)

Duration : One Hour

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

You might also like