flowcharting do statement - C programming- need help

rob_b

Member
Oct 9, 1999
68
0
0
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.
 

stndn

Golden Member
Mar 10, 2001
1,886
0
0
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 ....