diff --git a/flow/examples/README.md b/flow/examples/README.md index f024a18..94be9ca 100644 --- a/flow/examples/README.md +++ b/flow/examples/README.md @@ -23,7 +23,7 @@ This program does nothing. {% endraw %} -## Most a+b=c program +## a+b=c {% raw %}
@@ -39,3 +39,20 @@ b=1 c=a+b print(c) ``` + +## a+b=c with input from user + +{% raw %} ++ flowchart TD + start([Start]) --> inputa[/"Input integer a"/] --> inputb[/"Input integer b"/] --> add("c ← a+b") --> printc[/"print c"/] -->stop([Stop]) ++{% endraw %} + +In Python: +```python +a = int(input()) +b = int(input()) +c = a + b +print(c) +```