#include <math.h> #include <stdio.h> #include <malloc.h> #include <string.h> long int tenTotwo(int ten,int tag){ int temp,tempten=ten; int i=0; long int sum=0; while (tempten!=0) { temp=tempten%2; sum=sum+temp*pow(2,((3-tag)*8+i)); tempten=tempten/2; i++; } return sum; } void...