cxnnqr
|
1db5c0ef75
|
refactoring: changed print messages
|
11 months ago |
cxnnqr
|
e783ed4f25
|
print the ggT of those two numbers
|
11 months ago |
cxnnqr
|
9d410dc9f2
|
added ggT function to get the result
|
11 months ago |
cxnnqr
|
fda5883b0c
|
added functions to get the two numbers by the user
|
11 months ago |
cxnnqr
|
7ddc4b2251
|
added main.c for ggT
|
11 months ago |
cxnnqr
|
a8b6e1ea27
|
refactoring: refactored negative number handling into one line
|
11 months ago |
cxnnqr
|
7cf436571f
|
added function to ensure that the value of kgV is always positive
|
11 months ago |
fdai7968
|
ac1d23795b
|
included the header
|
11 months ago |
fdai7968
|
3387438388
|
refactoring: if one a or b is zero just return the other
|
11 months ago |
fdai7968
|
0c728d8355
|
Update src/subtraction/subtraction.h
|
11 months ago |
fdai7968
|
033277c37e
|
Add new subtraction.h file
|
11 months ago |
fdai7968
|
a5f0319427
|
Update src/subtraction/subtraction.c
|
11 months ago |
fdai7968
|
4c2b7fd6da
|
Add new subtraction.c
|
11 months ago |
fdai7968
|
72f01d58ad
|
Add new subtraction directory
|
11 months ago |
fdai7968
|
951389500c
|
Corrected naming mistake
|
11 months ago |
fdai7968
|
e037d3237a
|
refactoring case one or two zeros always return 0
|
11 months ago |
fdai7968
|
f0608d5029
|
Add multiplication.h
|
11 months ago |
fdai7968
|
8472e25748
|
Add multiplication.c
|
11 months ago |
fdai7968
|
0822b9d60b
|
Add multiplication
|
11 months ago |
Laurin
|
26343283e4
|
refactoring: made code more readable and added comments
|
11 months ago |
Laurin
|
004b81aca4
|
refactoring: added comments describing the function's behavior and use in header file
|
11 months ago |
Laurin
|
ded7c60fcb
|
defined and implemented function to convert hex input to decimal
|
11 months ago |
Laurin
|
2fe8d2dcbf
|
fixed function converting binary input to decimal not working for every input
|
11 months ago |
Laurin
|
bc133aa9f1
|
refactoring: handled possible memory allocation errors in both convert functions
|
11 months ago |
Laurin
|
16405fd475
|
refactoring: changed read only parameter of function from int to const int
|
11 months ago |
Laurin
|
2800426e7c
|
implemented hexStrLen function into to convert function to dynamically determine hex string length
|
11 months ago |
cxnnqr
|
6ad2f3dae7
|
implemented case if at least one input is zero
|
11 months ago |
Laurin
|
f68766a844
|
implemented function for determining string length of hex string
|
11 months ago |
cxnnqr
|
77b6fbc704
|
refactoring: use ggT function from previous instead of new one
|
11 months ago |
Laurin
|
ed0ba8f0b8
|
declared function to determine string length of hex string
|
11 months ago |
cxnnqr
|
66f28def92
|
added simple algorithm for getting the kgV
|
11 months ago |
cxnnqr
|
124ecff740
|
implemented prototype function kgV(int a, int b)
|
11 months ago |
cxnnqr
|
8e6a9d1d51
|
created kgV.h file
|
11 months ago |
Laurin
|
a96a875911
|
added other cases for input being smaller than 16
|
11 months ago |
Laurin
|
9cbb10f125
|
added function to convert int to hex string for small ints
|
11 months ago |
Laurin
|
7dfe49145c
|
declared new function to convert int to hex in header file
|
11 months ago |
cxnnqr
|
6aad7be0b2
|
refactoring: simplified the zero cases
|
11 months ago |
cxnnqr
|
9ed80a6f35
|
refactoring: added comments for better understanding
|
11 months ago |
Laurin
|
a7218c6a73
|
implemented prototype function to convert binary strings of 1s into decimal
|
11 months ago |
Laurin
|
3648f419cd
|
declared new function in header file to convert binary numbers into decimal
|
11 months ago |
cxnnqr
|
d76b8867fe
|
added edge cases for one or both numbers = 0
|
11 months ago |
cxnnqr
|
1fdc737367
|
refactoring: changed to Euclidean modulo algorithm
|
11 months ago |
cxnnqr
|
8bb76200ce
|
implemented basic function for the ggT
|
11 months ago |
cxnnqr
|
e5293217a7
|
renamed from ggt.h to ggT.h
|
11 months ago |
cxnnqr
|
28e2262a26
|
added prototype function ggT(int a, int b)
|
11 months ago |
cxnnqr
|
3fa1f1877a
|
defined ggT.h
|
11 months ago |
Laurin
|
abf4d186ad
|
added if statement to be able to convert negative integers
|
11 months ago |
Laurin
|
fb4ad3c51b
|
expanded binaryStrLen to determine length in case input is negative
|
11 months ago |
Laurin
|
69d57301a1
|
refactoring: moved if statement for input 0 to top
|
11 months ago |
Laurin
|
6fd5e28d8c
|
implemented binaryStrLen function into convertIntToBinaryStr
|
11 months ago |