Hey i\'m writing a program that converts decimal numbers into any base unit from binary to hexadecimal (2,3,4,....,15,16). This is what I have so far, running any number fro
This is weird, you return 0, which means "everything went fine" when there is an error, and you won't return anything otherwise. Plus yea, you meant || not | You didn't initialize your z variable, it could never enter the loop if it is 0, and even worse, you are never affection new value to z, so if it is not 0, it will never be and you are in an infinite loop