From 1d24d8b71cfba1f353fb10a657bc027d2f6240dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20G=C3=B6r?= Date: Tue, 18 Mar 2025 14:29:06 +0300 Subject: [PATCH] scanf example --- c-basic/scanf_example.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 c-basic/scanf_example.c diff --git a/c-basic/scanf_example.c b/c-basic/scanf_example.c new file mode 100644 index 0000000..fe4fa30 --- /dev/null +++ b/c-basic/scanf_example.c @@ -0,0 +1,12 @@ +#include + +int main() +{ + int a; + + printf("enter the a number:"); + scanf("%d", &a); + printf("a number is : %d\n", a); + + return 0; +}