digraph g {
subgraph a {
E [label = "Entry", shape = box];
e [label = "Exit", shape = box];
c [label = y_in = 3
multiply(2, 3)>];
E -> c -> e;
}
subgraph b {
Entry [shape=box, label = x = x_in
y = y_in>];
Exit [shape=box];
Entry -> "int result = 0" -> "while (x > 0)" -> "result += y" -> "x--" -> "while (x > 0)" -> "System.out.println(result)" -> "return result" -> Exit;
{ rank = same; "while (x > 0)"; "System.out.println(result)"}
}
}