Blame view
04 - Producto palindromo/itoaEjemplo.cpp
319 Bytes
fa2c5b27d Agregando problem... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
#include <stdio.h> #include <stdlib.h> int main () { int i; char buffer [33]; printf ("Enter a number: "); scanf ("%d",&i); itoa (i,buffer,10); printf ("decimal: %s ",buffer); itoa (i,buffer,16); printf ("hexadecimal: %s ",buffer); itoa (i,buffer,2); printf ("binary: %s ",buffer); return 0; } |