|
|
@ -1,6 +1,7 @@ |
|
|
|
#include "conversionOfNumbers.h" |
|
|
|
#include "../userinput.h" |
|
|
|
#include <stdio.h> |
|
|
|
#include <stdlib.h> |
|
|
|
|
|
|
|
int main(){ |
|
|
|
int min = 0; |
|
|
@ -34,6 +35,7 @@ int main(){ |
|
|
|
int toConvert = usergetd("\nGeben Sie eine Ganzzahl ein: ", NULL, NULL); |
|
|
|
char* result = convertIntToBinaryStr(toConvert); |
|
|
|
printf("\nAusgabe (in Binaer): %s\n", result); |
|
|
|
free(result); |
|
|
|
} |
|
|
|
} |
|
|
|
if(InputSys == 1){ |
|
|
@ -47,6 +49,7 @@ int main(){ |
|
|
|
int toConvert = usergetd("\nGeben Sie eine positive Ganzzahl ein: ", &rangeMin, NULL); |
|
|
|
char* result = convertIntToHex(toConvert); |
|
|
|
printf("\nAusgabe (in Hex): %s\n", result); |
|
|
|
free(result); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|