How to picture “for” loop in block representation of algorithm

前端 未结 3 2033
既然无缘
既然无缘 2020-12-29 03:22

I have probem / strange question, i got algorithm with few \"for\" loops and now i need to do block scheme of this algorithm.

I know how to picture \"while\" loop,

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-29 03:54

    The Algorithm for given flow chart :

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    Step :01

    • Start

    Step :02 [Variable initialization]

    • Set counter: i<----K [Where K:Positive Number]

    Step :03[Condition Check]

    • If condition True then Do your task, set i=i+N and go to Step :03 [Where N:Positive Number]
    • If condition False then go to Step :04

    Step:04

    • Stop

提交回复
热议问题