Can you help me designing a pattern of algorithm (structogram\\Diagram) to this task in the picture enter image description here