n = 0
1 read x
n = n + 1
print x
If n > 1, go down to 2
small = x
large = x
2 If x</= small, then small = x
If x>/= large, then large = x
If n < 12 , go back up to 1
Print small
Print large
end
Step 1: Design a flowchart or write pseudocode for a program that allows a user to enter 12 numbers, then displays all of the numbers (in the order they were entered) as well as the largest number and the smallest number.
Step 2: Implement and test your design using VisualLogic.
1 answer