diff --git a/in/public/code/c/index.rst b/in/public/code/c/index.rst index 09ce45e..d0e739f 100644 --- a/in/public/code/c/index.rst +++ b/in/public/code/c/index.rst @@ -12,3 +12,14 @@ Main printf("Hello, world!\n"); system("pause"); } + +Input +----- + +.. code:: c + + int entry1 = 0; + int entry2 = 0; + printf("type in 2 integers\n"); + scanf("%d%d", &entry1, &entry2); + printf("sum: %d\n", entry1 + entry2);