Respuesta :
Answer:
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.
Explanation:
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.
Algorithms are set of instructions which are to be followed in other to solve a particular problem. The algorithm which gives the average of six values goes thus:
1.)
Input : a, b, c, d, e, f
#takes input of the six numbers
2.)
sum=0 ; average=0
# initialize sum and average variables to 0
3.)
sum = a + b + c + d + e + f
#takes the sum of the six numbers
4.)
average = sum /6
#divide the sum by the number of values.
5)
print average.
#display the average value
Learn more : https://brainly.com/question/24266817