reviewed part 1 of chapter 3
This commit is contained in:
parent
7ae9bc49f2
commit
7067525f98
6 changed files with 89 additions and 91 deletions
|
@ -1,13 +1,13 @@
|
|||
digraph g {
|
||||
subgraph a {
|
||||
Start [shape=box];
|
||||
End [shape=box];
|
||||
Start [shape=box,label="Enter"];
|
||||
End [shape=box,label="Exit"];
|
||||
f [label=<f (a, b)>]
|
||||
Start -> "a = 10" -> "b = 20" -> f -> End;
|
||||
}
|
||||
subgraph b {
|
||||
s [shape=box,label=<Start>];
|
||||
End2 [shape=box,label=<End>];
|
||||
s [shape=box,label=<Enter>];
|
||||
End2 [shape=box,label=<Exit>];
|
||||
s -> "while (x > y)" -> "x = x - 1" -> "while (x > y)" -> "print(x)" -> End2;
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
|
@ -1,6 +1,6 @@
|
|||
digraph g {
|
||||
subgraph cluster_a {
|
||||
Start [shape=box,label="Start main()"];
|
||||
Start [shape=box,label="Enter main()"];
|
||||
l2 [label="a = 10"];
|
||||
l3 [label="b = 20"];
|
||||
l4 [label="f(a, b)"];
|
||||
|
@ -22,7 +22,7 @@ digraph g {
|
|||
}
|
||||
|
||||
subgraph cluster_b {
|
||||
StartF [shape=box,label="Start f()"];
|
||||
StartF [shape=box,label="Enter f()"];
|
||||
l8 [label="while (x > y)"];
|
||||
l9 [label="x = x + 1"];
|
||||
l11 [label="print(x)"];
|
||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue