1. Write algorithm and draw flow chart for minimum value in a list.
Answers
Answered by
0
Answer:
lelo pudinaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Answered by
0
Algorithm:
- Start
- Read size of list from the user say 'n'
- Declare list of size n, say a[n]
- initialize loop variable, i = 0
- repeat while i < n:
- read the list element at position 'i'
- increment i by 1
6. initialize smallest element, min = a[0]
7. initialize loop variable, i = 0
8. repeat while i < n:
- if a[i] < min, then
min = a[i]
- increment i by 1
9. print smallest number, min
10. stop
Similar questions
Math,
12 hours ago
Chemistry,
12 hours ago
English,
12 hours ago
Environmental Sciences,
1 day ago
Political Science,
8 months ago