From ffca2a7d25dc95ece58fdf7cbc6576cc5cf71564 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20G=C3=B6r?= Date: Fri, 21 Mar 2025 13:10:07 +0300 Subject: [PATCH] hex read scanf example --- c-basic/hex_read_scanf.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 c-basic/hex_read_scanf.c diff --git a/c-basic/hex_read_scanf.c b/c-basic/hex_read_scanf.c new file mode 100644 index 0000000..a6e7fa5 --- /dev/null +++ b/c-basic/hex_read_scanf.c @@ -0,0 +1,12 @@ +#include + +int main() +{ + int a, b; + + printf("Enter your number : "); + scanf("%x", &a); + printf("a = %d\n", a); + + return 0; +}