Can you please create a flowgorithm chart for the problem below. Also, provide pseudocode as well. Please do not answer this question if you cannot put into a flowgorithm chart. It must be in flowgorithm. Thanks!
Design the logic for a program that outputs every even number from 2 through 20.
We want to design the logic of a program which will output every even numbers from 2 through 20.For this we will assume variable num as 2.A while loop is used to iterate the numbers from 2 to 20.Inside the while loop,all the values of num get printed and also the num will get updated in to num+2.
PSEUDOCODE
start
initialize num as 2
while num is less than or equal to 20
display the value of num
add 2 to the value of num
end while
stop
Flowgorithm
Flowgorithm of the given problem is shown below.
Get Answers For Free
Most questions answered within 1 hours.