hex read scanf

This commit is contained in:
2025-06-18 07:35:11 +03:00
parent 1216bc4a03
commit 45f7da58f9
3 changed files with 12 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#include <stdio.h>
#include "hex_read_scanf.h"
int hex_scan()
{

9
c-basic/hex_read_scanf.h Normal file
View File

@ -0,0 +1,9 @@
// hexutil.h
#ifndef HEXUTIL_H
#define HEXUTIL_H
// Prompts the user for a hexadecimal number and prints its decimal value.
// Returns 0 upon successful execution.
int hex_scan(void);
#endif // HEXUTIL_H

View File

@ -1,9 +1,9 @@
#include <stdio.h>
#include "scanf_example_two_numbers.h"
#include "hex_read_scanf.h"
int main() {
scan_two_numbers();
hex_scan();
return 0;
}