diff --git a/c-basic/float_double.c b/c-basic/float_double.c deleted file mode 100644 index d9b3f83..0000000 --- a/c-basic/float_double.c +++ /dev/null @@ -1,17 +0,0 @@ -#include - -int my_float() -{ - float f; - double d; - - printf("float :"); - scanf("%f", &f); - - printf("double :"); - scanf("%lf", &d); - - printf("f = %f, d = %f", f, d); - - return 0; -} diff --git a/c-basic/foo.c b/c-basic/foo.c deleted file mode 100644 index a9602ef..0000000 --- a/c-basic/foo.c +++ /dev/null @@ -1,8 +0,0 @@ -#include - -int foo() -{ - printf("I am foo\n"); - - return 0; -} diff --git a/c-basic/hello.c b/c-basic/hello.c deleted file mode 100644 index 2140052..0000000 --- a/c-basic/hello.c +++ /dev/null @@ -1,5 +0,0 @@ -#include - -void hello() { - printf("Hello C Programming Language 2025 Examples\n"); -} diff --git a/c-basic/hello.h b/c-basic/hello.h deleted file mode 100644 index f19e5d3..0000000 --- a/c-basic/hello.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef HELLO_H -#define HELLO_H - -void hello(); - -#endif diff --git a/c-basic/hex_read_scanf.c b/c-basic/hex_read_scanf.c deleted file mode 100644 index cc04ab5..0000000 --- a/c-basic/hex_read_scanf.c +++ /dev/null @@ -1,15 +0,0 @@ -#include "hex_read_scanf.h" - -int hex_scan() -{ - - int a; - - printf("Enter a number : "); - - scanf("%x", &a); - - printf("a = %d\n", a); - - return 0; -} diff --git a/c-basic/hex_read_scanf.h b/c-basic/hex_read_scanf.h deleted file mode 100644 index b471eb7..0000000 --- a/c-basic/hex_read_scanf.h +++ /dev/null @@ -1,9 +0,0 @@ -// 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 diff --git a/c-basic/print_example.c b/c-basic/print_example.c deleted file mode 100644 index d3cfeba..0000000 --- a/c-basic/print_example.c +++ /dev/null @@ -1,12 +0,0 @@ -#include "print_example.h" - -int print_example() -{ - int a = 10, b = 20; - - printf("a = %d, b = %d\n", a, b); - printf("a ? = %d, b ? = %d\n", b , a); - printf("%d%d\n", a, b); - - return 0; -} diff --git a/c-basic/print_example.h b/c-basic/print_example.h deleted file mode 100644 index fc6b28e..0000000 --- a/c-basic/print_example.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef PRINT_EXAMPLE_H -#define PRINT_EXAMPLE_H - -#include - -int print_example(); - -#endif diff --git a/c-basic/print_example_with_scan.c b/c-basic/print_example_with_scan.c deleted file mode 100644 index bb5c4a8..0000000 --- a/c-basic/print_example_with_scan.c +++ /dev/null @@ -1,20 +0,0 @@ -#include - -int print_with_scan() -{ - int a , b ; - - printf("enter a number\n"); - scanf("%d", &a); - - printf("enter b number\n"); - scanf("%d", &b); - - printf("a is %d\n", a); - printf("b is %d\n", b); - - printf("a is %d b is %d\n", a, b); - printf("b is %d a is %d\n", b, a); - - return 0; -} diff --git a/c-basic/scanf_example.c b/c-basic/scanf_example.c deleted file mode 100644 index 675e810..0000000 --- a/c-basic/scanf_example.c +++ /dev/null @@ -1,12 +0,0 @@ -#include "scanf_example.h" - -int my_scan() -{ - int a; - - printf("enter the a number:"); - scanf("%d", &a); - printf("a number is : %d\n", a); - - return 0; -} diff --git a/c-basic/scanf_example.h b/c-basic/scanf_example.h deleted file mode 100644 index 6c8fbfc..0000000 --- a/c-basic/scanf_example.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef SCANF_EXAMPLE_H -#define SCANF_EXAMPLE_H - -#include - -int my_scan(); - -#endif diff --git a/c-basic/scanf_example_two_numbers.c b/c-basic/scanf_example_two_numbers.c deleted file mode 100644 index e42158a..0000000 --- a/c-basic/scanf_example_two_numbers.c +++ /dev/null @@ -1,13 +0,0 @@ -#include "scanf_example_two_numbers.h" - -int scan_two_numbers() -{ - int a, b; - - printf("enter two numbers:"); - scanf("%d%d", &a, &b); - - printf("a = %d, b = %d\n", a, b); - - return 0; -} diff --git a/c-basic/scanf_example_two_numbers.h b/c-basic/scanf_example_two_numbers.h deleted file mode 100644 index a2d8107..0000000 --- a/c-basic/scanf_example_two_numbers.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef SCANF_EXAMPLE_TWO_NUMBERS_H -#define SCANF_EXAMPLE_TWO_NUMBERS_H - -#include - -int scan_two_numbers(); - -#endif diff --git a/c-basic/toplama.c b/c-basic/toplama.c deleted file mode 100644 index 3aa3ee9..0000000 --- a/c-basic/toplama.c +++ /dev/null @@ -1,13 +0,0 @@ -#include - -int addition() -{ - int a , b , c; - - a = 10; - b = 20; - c = a + b; - printf("C = %d", c); - - return 0; -}