Sunday, 9 February 2014

Cara Convert Desimal ke Heksadesimal C++

#include
#include
void biner(int n)
{
char arr[17]={'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};

if(n>15)
{
biner(n/16);
}
printf("%c",arr[n%16]);
}
void main()
{
int n;
printf("Masukkan angka Desimal : ");
scanf("%i",&n);
biner(n);
}

2 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. Reading this article was an experience. I enjoyed all the information you provided and appreciated the work you did in getting it written. You really did a lot of research.

    ReplyDelete