From 8cf0b7dbe92bed6ef23614db72ec64ff1e5ef55f Mon Sep 17 00:00:00 2001 From: David Rotermund <54365609+davrot@users.noreply.github.com> Date: Tue, 12 Dec 2023 16:14:52 +0100 Subject: [PATCH] Update README.md Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com> --- flow/examples/README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) 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) +```