From 9ad88016bb917af20f604bf4ebdb391266d46b40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20G=C3=B6r?= Date: Tue, 18 Mar 2025 14:39:40 +0300 Subject: [PATCH] scanf two numbers --- c-basic/scanf_example_two_numbers.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 c-basic/scanf_example_two_numbers.c 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; +}