binary to hexadecimal in c
/*
* C Program to Convert Binary to Hexadecimal
* My Github: https://github.com/krishnan-tech
*/
#include <stdio.h>
int main()
{
long int binaryval, hexadecimalval = 0, i = 1, remainder;
printf("Enter the binary number: ");
scanf("%ld", &binaryval);
while (binaryval != 0)
{
remainder = binaryval % 10;
hexadecimalval = hexadecimalval + remainder * i;
i = i * 2;
binaryval = binaryval / 10;
}
printf("Equivalent hexadecimal value: %lX", hexadecimalval);
return 0;
}
Also in C:
- c \a
- c programming print pattern pyramid
- intellij idea
- matrix pointer c
- vs code turn off formatter
- how to add to the end of a linked list
- matplotlib pyplot legend location
- how to make a linked list in c
- arduino knn
- wireshark tls client hello filter
- blockchain implementation
- how do pointers work in c programmwiz
- resto de division recursiva
- warning: function returns address of local variable [-Wreturn-local-addr]
- FILE*
- rakshabandhan 2020
- passing 2d array as parameter to function in c
- get configuration script window 7
- how to pass an array to a thread in c?
- 1 212 32123 4321234 543212345 in c
- create point cloud from rgbd image in open3d v0.10
- Ionic 3 camera plugin not returning video from photo library on ios
- fopen c
- reverse function in c