You are on page 1of 4

ROBLES, CLARENCE F.

BSCS – 2A
1. Flowcharts and pseudo code are both used before writing code, but pseudocode is linear while a flow chart
isn't. Also, a flowchart is graphical, while pseudocode is technical. With that in mind, a flow diagram is
suitable for communicating between non-technical people and programmers.
Pseudocode is an informal high-level description of the operating principle of an algorithm. Flowchart is a
diagrammatic representation that illustrates a solution model to a given problem. Pseudocode is the process
where the language will be translated into software codes.
START

A number (n)

Number n is a
prime or not

For all k = 2,3,4,…., (square – root(n))


If ( n mood k 0) then n is a prime
number
Else it is not a prime number

end
START

input1

input2

Calculate average =
(number + number 2)

input2

end

You might also like