Write an algorithm to find the average of five numbers and draw the flowchart also
Answers
Answered by
59
Flowchart and algorithm
Write an algorithm for finding the average of two numbers and also draw a flowchart.
Algorithm: Input: two numbers x and y Output: the average of x and y Step 1 : input x,y Step 2: sum=0,average=0 Step 3:sum = x + y Step 4:average = sum /2 Step 5: print average.
Write an algorithm for finding the average of two numbers and also draw a flowchart.
Algorithm: Input: two numbers x and y Output: the average of x and y Step 1 : input x,y Step 2: sum=0,average=0 Step 3:sum = x + y Step 4:average = sum /2 Step 5: print average.
Answered by
5
Answer:
Algorithm: Input: two numbers x and y Output: the average of x and y Step 1 : input x,y Step 2: sum=0,average=0 Step 3:sum = x + y Step 4:average = sum /2 Step 5: print average.
Similar questions
Art,
4 months ago
Math,
4 months ago
English,
4 months ago
Computer Science,
9 months ago
English,
9 months ago
Social Sciences,
1 year ago
Science,
1 year ago