Hex Scanf example

This commit is contained in:
Mert Gör 🇹🇷 2024-06-30 15:23:05 +03:00
parent de6254a849
commit 06bb7fb087
Signed by: hwpplayer1
GPG Key ID: 03E547D043AB6C8F
2 changed files with 13 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2024-06-30 hwpplayer1 <hwpplayer1@debian>
* c-basic/hex_scanf.c: hex scanf example
* c-basic/scanf_2.c: scanf two numbers
* c-basic/scanf.c: Scanf example

11
c-basic/hex_scanf.c Normal file
View File

@ -0,0 +1,11 @@
#include <stdio.h>
int main()
{
int a, b;
printf("Bir sayi giriniz : ");
scanf("%x", &a);
printf("a = %d\n", a);
return 0;
}