Converte valores hexadecimais em decimais

Sem Título1.html
#include <stdio.h>
#include <stdlib.h>

int main() {
    int h1 = 0x1b4d, h2 = 0x1b5d, h3 = 0x1b6d;
    printf("Converte valores hexadecimais em decimais\n");
    printf("h1 = %d\n", h1);
    printf("h2 = %d\n", h2);
    printf("h3 = %d\n", h3);
    return 0;
}

Comentários