diff --git a/c-basic/scanf_example_two_numbers.c b/c-basic/scanf_example_two_numbers.c new file mode 100644 index 0000000..a01d51e --- /dev/null +++ b/c-basic/scanf_example_two_numbers.c @@ -0,0 +1,13 @@ +#include + +int main() +{ + int a, b; + + printf("enter two numbers:"); + scanf("%d%d", &a, &b); + + printf("a = %d, b = %d\n", a, b); + + return 0; +}