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

EXAM– Algorithms and Data Structures

mgr inż. Cezary Graul

21.01.2021r
Name ……………………………

Ex.1. Implement the algorithm presented in the flowchart. Register variable values at
individual stages of the algorithm implementation.

t[5,9,4,2,6]
n=5

t n i j tmp
1
2
3
4
5
6
7
8
9
10
11
EXAM– Algorithms and Data Structures
mgr inż. Cezary Graul

Ex.2. Draw a flowchart of the algorithm that will acquire a numeric value from the user (verify
that the entered value is a number), and then verify that the entered value is an integer. If so,
check and display how many digits the number has. If not, complete the algorithm execution.

You might also like