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

Flow 1

This program takes in a number from the user, checks if it is odd by testing if it is not evenly divisible by 2, increments a counter if it is odd, and adds the number to a running sum if it is odd. It repeats taking numbers and checking for oddness until the counter reaches 10, at which point it prints the final sum.

Uploaded by

api-3798693
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Flow 1

This program takes in a number from the user, checks if it is odd by testing if it is not evenly divisible by 2, increments a counter if it is odd, and adds the number to a running sum if it is odd. It repeats taking numbers and checking for oddness until the counter reaches 10, at which point it prints the final sum.

Uploaded by

api-3798693
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

START

ENTER N
NUMBER

NO N%2 != 0 YES
INCREMEN
T CNT

ADD ODD
NUMBER
TO SUM
(SUM+=N)

CNT
lessYES
than
equal to
10

Print sum

STOP

You might also like