Does anybody have code for a simple hexadecimal calculator
Printable View
Does anybody have code for a simple hexadecimal calculator
how about you write your own??
it's just the same as decimal... just make sure you read in as hex, and output as hex.. the rest is done just like decimal! :o
use your head.
U.
Code:// Adds 2 hexadecimal numbers together...
int main (void)
{
int a, b, c;
printf ("Two numbers please.\n");
scanf ("%x%x", &a, &b);
c = a + b;
printf ("%X", c);
return 0;
}
Thanks Question C this gives me a good start