/*

dec2hex copyright 2001 by Gene Davis
I hereby release this to the public domain

*/
#include <stdlib.h>

int main(int argc, char *argv[]) {
  if (argc != 2) {
    printf("\n\nIncorrect format for dec2hex.");
    printf("\ndec2hex [decimal # to convert to hexadecimal]\n\n");
  }
  else {
    
    int x = atoi(argv[1]);
    
    printf("\n%X\n\n", x);
  }
  return 0;
}
