home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Quantico / km / adl10acg.c.txt < prev    next >
Encoding:
Text File  |  2000-05-25  |  351 b   |  17 lines

  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. void main() {
  5.     unsigned long compid, acode;
  6.  
  7.     printf("All Digital Library v1.0 Access Code generator\n");
  8.     printf("Enter the Computer ID Number\n> ");
  9.     if (scanf("%lu", &compid) == 0) {
  10.         printf("Invalid number\n");
  11.         exit(1);
  12.     }
  13.     acode = ((long)sqrt(compid)) + 0x268b;
  14.  
  15.     printf("\nAccess Code : %u\n", acode);
  16. }
  17.