Computer Science, asked by Nickyijoshi3699, 1 year ago

Flowchart to find the sum and average of three number?

Answers

Answered by shivanshyadav48035
242
STEP 1     START
STEP 2     INPUT X,Y,Z
STEP 3     COMPUTE SUM = X + Y + Z
STEP 4     COMPUTE AVG = SUM/3
STEP 5     PRINT SUM
STEP 6     PRINT AVG
STEP 7     END
Answered by franktheruler
85

Answer:

We all know that the average = summation of n numbers / n.

HERE, the value of n is 3.

Flowchart :

step 1: Start

step 2: Take three input for calculating the average. say the numbers are n1, n2, n3.

Step 3: Add the all values of n1, n2 and n3. Then you have to store the result of addition in another variable like Add = n1 + n2 +n3

Step 4:  After that you have to take another variable for average like avg = add / 3.

Step 5: print the value average;

step 6: END

Similar questions