• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

flowcharting do statement - C programming- need help

rob_b

Member
Can someone give me some examples of a do statement in a flowchart. I'm having trouble figuring out how to represent a do statement in the flowchart. Any help would be greatly appreciated.
 
i hope this will give you some idea .... it's "drawn" left to right instead of top to bottom .....

something goes to the beginning of flowchart -----*------> increment variable "i" by 1 ------- is "i" greater than 10? -----------> something else goes to the end of flowchart

from the diamond box (which usually denotes question), you can ask yes/no question, which leads to the "*" at the beginning (to re-enter the do-while loop), if the answer is yes, or goes to whatever follows later if the answer is no....

i hope it's going to give some imagination for you ....

here's another try .... drawn top to bottom ... hope the spacing won't mess up too much ....

something goes to the beginning of flowchart
............|
............|....<----------------------------------------------------^
............V......................................................................|
increment variable "i" by one......................................NO
............|.......................................................................|
............|.......................................................................|
....is "i" greater than 10?.............................................|
............|
...........YES
............V
do something else


hope that helps ...

-1022-

edit: here is a simple gif image for that ....
 
Back
Top