mirror of
https://github.com/davrot/pytutorial.git
synced 2025-04-19 05:36:42 +02:00
|
||
---|---|---|
.. | ||
README.md |
Flowchart examples
{:.no_toc}
* TOC {:toc}The goal
Looking into some flow chart examples.
Questions to David Rotermund
Most simple program
This program does nothing.
{% raw %}
flowchart TD start([Start])-->stop([Stop])
{% endraw %}
Most a+b=c program
{% raw %}
flowchart TD start([Start]) --> inita{{"a ← 1"}} --> initb{{"b ← 1"}} --> add("c ← a+b") --> printc[/"print c"/] -->stop([Stop])
{% endraw %}
In Python:
a=1
b=1
c=a+b
print(c)