Professional Documents
Culture Documents
Controle C2 Algo1
Controle C2 Algo1
FullName :
1 Exercise
1. (2 1/2 points) . Write an algorithm which sums S such that :
S= 1 + 14 + 91 + 16
1 1
+ 25 + .....
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) .
An oral examination starts at time T (h:m:s), the candidates are
examined one after the other by an examiner who takes 3 minutes
to give the mark and start with the next candidate. The number
of candidates and the duration of each candidate’s exam are given
by the user;
1. Write an algorithm that displays the start and the
end times for each candidate.
Page 3 of 4
l
Page 4 of 4