You are required to write a C program that accepts two decimal integers, say d and r. You

may assume that the first decimal integer d is nonnegative and that the second decimal integer r

which represents the radix, will be one of 2, 3, 4, . . ., 15, 16. The program should convert the first

decimal integer d into its representation in radix r and print the result.

I seriously am clueless on how to start. What I want to do is take a decimal divide by a base record the remainder and keep doing so with the decimal until the decimal is 0 and record the remainders. That is how I get the binary.

This is what I got so far its absolutely nothing

```
#include <stdio.h>
int main(void){
int d, r, temp;
temp = d = r = 0;
temp = d/r;
```