Write A Algorithm And Draw Corresponding Flowchart To Process

Write A Algorithm And Draw Corresponding Flowchart To Process image.
source