diff --git a/conversions/octal_to_hexadecimal.c b/conversions/octal_to_hexadecimal.c index e18edd20..9ab706c2 100644 --- a/conversions/octal_to_hexadecimal.c +++ b/conversions/octal_to_hexadecimal.c @@ -5,11 +5,11 @@ * return a string hexadecimal value after conversion * @author [Rachit Bhalla](https://github.com/rachitbhalla) */ -#include -#include -#include -#include -#include +#include // for assert +#include // for pow function +#include // for scanf and printf functions +#include // for malloc and free functions +#include // for strcmp function /** * @brief Convert octal number to decimal number @@ -57,16 +57,16 @@ static void test() { */ int main() { - //execute the tests + // execute the tests test(); int octalValue; printf("Enter an octal number: "); scanf("%d", &octalValue); - //Calling the function octalToHexadecimal + // Calling the function octalToHexadecimal char *hexadecimalValue = octalToHexadecimal(octalValue); - printf("\nEquivalent hexadecimal number is: %s", hexadecimalValue); + printf("Equivalent hexadecimal number is: %s", hexadecimalValue); free(hexadecimalValue); return 0; }