Question: I need this in c programming assignment is given and also code is given you just have to code the lines where it says TODO
I need this in c programming
assignment is given and also code is given you just have to
code the lines where it says TODO here
please edit the code that i have given and please send me screenshot of the output as well


V/In this assignment, we will write code to convert a decimal number to a hexadecimal number 1 3 #include 4 #include 5 #include 6 7//convert the decimal integer d to hexadecimal, the result is stored in hex [] 8 void dec_hex (int d, char hex[]) 10, char digits [] -('0', '1', '2', '3', '4', '5', '6', '7', '8', , 'A', 13 14 15 /It should not be hard to obtain the last digit of the hex number by int k = ; //Fill in your code below dividing with 16. Think what you will get if you keep dividing a number by 16. When should you stop? //If you are getting the digits in the reverse order, what should you do in the end? 18 19 20 21 23 25 26 I/Make sure the last character is a zero so that we can print the string correctly 28 29 30 // Do not change the code below 31 int main) 32 int d; char hex[80]; 34 30 // Do not change the code below 31 int main() 32 int d; char hex [80]; 34 35 36 37 38 39 40 41 42 43 printf("Enter a positive integer:"); scanf("%d", &d); dec_hex (d, hex); printf("%s ", hex); return 0