draw a flowchart to find the smallest number amin n numbers
Answers
Answered by
0
Answer:
Algorithm to find the smallest number among n numbers :
Step 1: Inside an array, take n number of inputs.
Step 2: Assume that the first element is the smallest.
Step 2: Assume that the first element is the smallest. ...
if (a[i] < smallest)
{ smallest = a[i]; }
Step 4: Print the smallest value.
Similar questions
Math,
10 days ago
English,
10 days ago
Geography,
10 days ago
India Languages,
9 months ago
History,
9 months ago