Help !!Hex2dec
Fermé
sharu
Messages postés
3
Date d'inscription
samedi 4 novembre 2006
Statut
Membre
Dernière intervention
8 décembre 2007
-
9 nov. 2007 à 12:57
mindslight Messages postés 87 Date d'inscription mercredi 1 juin 2005 Statut Membre Dernière intervention 29 octobre 2009 - 9 nov. 2007 à 17:06
mindslight Messages postés 87 Date d'inscription mercredi 1 juin 2005 Statut Membre Dernière intervention 29 octobre 2009 - 9 nov. 2007 à 17:06
A voir également:
- Help !!Hex2dec
- Vba hex2dec - Forum VB / VBA
- Hex2dec python - Forum Python
1 réponse
mindslight
Messages postés
87
Date d'inscription
mercredi 1 juin 2005
Statut
Membre
Dernière intervention
29 octobre 2009
12
9 nov. 2007 à 17:06
9 nov. 2007 à 17:06
Bonsoir,
voici un code qui fonctionne.
Il n'est absolument pas pédagogique, mais il fonctionne.
#include <stdio.h>
#include <stdlib.h>
int main()
{
int n;
if (scanf("%d", &n) == 1)
printf("%x\n", n);
return (EXIT_SUCCESS);
}
@+
voici un code qui fonctionne.
Il n'est absolument pas pédagogique, mais il fonctionne.
#include <stdio.h>
#include <stdlib.h>
int main()
{
int n;
if (scanf("%d", &n) == 1)
printf("%x\n", n);
return (EXIT_SUCCESS);
}
@+