c/input
This commit is contained in:
parent
cf021fd088
commit
ddd1735553
1 changed files with 11 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue