-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsum.drawio
More file actions
73 lines (73 loc) · 6.48 KB
/
sum.drawio
File metadata and controls
73 lines (73 loc) · 6.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<mxfile host="app.diagrams.net" modified="2024-03-19T14:23:41.588Z" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" etag="wGShkbSDuYSj1xCE_deg" version="24.0.7" type="device">
<diagram name="Page-1" id="WY7xCoOQyBW6qViebdrM">
<mxGraphModel dx="497" dy="269" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="5XGM9iSNcIquItfdNELR-32" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="5XGM9iSNcIquItfdNELR-2" target="5XGM9iSNcIquItfdNELR-3" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="5XGM9iSNcIquItfdNELR-2" value="initialize&nbsp;<span style="background-color: initial;">sum = 0</span><div><span style="background-color: initial;">index = 1</span></div>" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="364" y="247" width="140" height="47" as="geometry" />
</mxCell>
<mxCell id="5XGM9iSNcIquItfdNELR-37" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="5XGM9iSNcIquItfdNELR-3" target="5XGM9iSNcIquItfdNELR-5" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="sKOg_QDPIXCFG0Gl02Um-6" value="TRUE" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="5XGM9iSNcIquItfdNELR-37">
<mxGeometry x="-0.6613" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="5XGM9iSNcIquItfdNELR-42" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="5XGM9iSNcIquItfdNELR-3" target="5XGM9iSNcIquItfdNELR-40" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="309" y="376" />
<mxPoint x="309" y="532" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="sKOg_QDPIXCFG0Gl02Um-7" value="FALSE" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="5XGM9iSNcIquItfdNELR-42">
<mxGeometry x="-0.7706" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="5XGM9iSNcIquItfdNELR-3" value="index &lt;= n" style="rhombus;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="374" y="336" width="120" height="80" as="geometry" />
</mxCell>
<mxCell id="5XGM9iSNcIquItfdNELR-38" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" parent="1" source="5XGM9iSNcIquItfdNELR-5" target="5XGM9iSNcIquItfdNELR-27" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="5XGM9iSNcIquItfdNELR-5" value="sum = sum + index" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="526" y="441" width="140" height="40" as="geometry" />
</mxCell>
<mxCell id="5XGM9iSNcIquItfdNELR-31" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="5XGM9iSNcIquItfdNELR-24" target="5XGM9iSNcIquItfdNELR-2" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="5XGM9iSNcIquItfdNELR-24" value="get user&nbsp;<div>input&nbsp;<span style="background-color: initial;">n</span></div>" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;" parent="1" vertex="1">
<mxGeometry x="364" y="155" width="140" height="50" as="geometry" />
</mxCell>
<mxCell id="5XGM9iSNcIquItfdNELR-39" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="5XGM9iSNcIquItfdNELR-27" target="5XGM9iSNcIquItfdNELR-3" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="5XGM9iSNcIquItfdNELR-27" value="index += 1" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="526" y="356" width="140" height="40" as="geometry" />
</mxCell>
<mxCell id="5XGM9iSNcIquItfdNELR-30" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="5XGM9iSNcIquItfdNELR-29" target="5XGM9iSNcIquItfdNELR-24" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="5XGM9iSNcIquItfdNELR-29" value="START" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;" parent="1" vertex="1">
<mxGeometry x="374" y="67" width="120" height="46" as="geometry" />
</mxCell>
<mxCell id="5XGM9iSNcIquItfdNELR-44" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="5XGM9iSNcIquItfdNELR-40" target="5XGM9iSNcIquItfdNELR-43" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="5XGM9iSNcIquItfdNELR-40" value="output sum" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;" parent="1" vertex="1">
<mxGeometry x="364" y="507" width="140" height="50" as="geometry" />
</mxCell>
<mxCell id="5XGM9iSNcIquItfdNELR-43" value="END" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;" parent="1" vertex="1">
<mxGeometry x="374" y="597" width="120" height="46" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>