i want hexadecimal addition program without converting it into any other base n without use of %x.....

Hexadecimal math is standard with type int.

/* This is a test to see how to do hex math*/

#include <stdio.h>
#include <math.h>
int main(void)
{
int number1 = 0x00;
int number2 = 0x00;
int result;

puts ("Enter a hexadecimal number.");
scanf("%p", &number1);
puts ("Enter another hexadecimal number.");
scanf("%p", &number2);

result = number1 + number2;

printf ("%p + %p = %p", number1, number2, result);
scanf ("%p", number2);
return 0;
}

the %p keeps everything in the hex format during printing.