Hex Scanf example
This commit is contained in:
parent
de6254a849
commit
06bb7fb087
@ -1,5 +1,7 @@
|
|||||||
2024-06-30 hwpplayer1 <hwpplayer1@debian>
|
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_2.c: scanf two numbers
|
||||||
|
|
||||||
* c-basic/scanf.c: Scanf example
|
* c-basic/scanf.c: Scanf example
|
||||||
|
11
c-basic/hex_scanf.c
Normal file
11
c-basic/hex_scanf.c
Normal 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;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user