Skip to content

Instantly share code, notes, and snippets.

View harveytoro's full-sized avatar

Harvey harveytoro

View GitHub Profile
@harveytoro
harveytoro / decimal2baseConverter.c
Created November 8, 2012 22:35
Decimal to any base converter
#include <stdio.h>
int main(int argc, char *argv[]) {
int userInput = 2156; //number to convert
int base = 16; // change base here
int anws[10] = {}; //couldn't get dynamic array to work. Do not like this way.
int count = 0;