Im working on a program that will take a routing number from a check (8digits)and determine the checks number (9th digit). I got that far and was able to separate the digits
doing this: printf("Enter first eight digits of RTN: "); scanf("%1d%1d%1d%1d%1d%1d%1d%1d",&n1,&n2,&n3,&n4,& n5,&n6,&n7,&n8);
but now i have to determine, for instance, the location or reserve bank. How can i get the 1st 2 digits, say 123456789, so 1 and 2, to be 12, not 1+2 =3?