0% found this document useful (0 votes)
30 views

Start: Sum 0 CTR 0 Average 0

The document provides a flowchart to calculate the sum and average of odd and even numbers entered from the keyboard. The flowchart starts by initializing the sum, count, and average variables to 0. It then reads a number from the keyboard and uses a conditional statement to check if the count is less than 10, incrementing the count and adding the number to the running sum each iteration. Once the count reaches 10, it prints the final sum and average values before ending the process.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views

Start: Sum 0 CTR 0 Average 0

The document provides a flowchart to calculate the sum and average of odd and even numbers entered from the keyboard. The flowchart starts by initializing the sum, count, and average variables to 0. It then reads a number from the keyboard and uses a conditional statement to check if the count is less than 10, incrementing the count and adding the number to the running sum each iteration. Once the count reaches 10, it prints the final sum and average values before ending the process.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

TRISHA MAE ASHLEY A.

PRE
2ChEB

Draw a flowchart to print the sum and average of all odd and even numbers entered from the
keyboard. There are 50 different numbers to be entered from the keyboard.

START

SUM = 0
CTR = 0
AVERAGE = 0

Read N

Is YES CTR = CTR + 1


CTR < 10? SUM = SUM + N

AVE = CTR

NO

PRINT
SUM and AVE

END

You might also like