1 #include <stdio.h> 2 #include <unistd.h> 3 4 #include <sys/types.h> 5 int main () 6 { 7 typedef unsigned char u_char; 8 u_char c,d; 9 10 for(c='a',d='A'; c <='z' && d<='Z'; c=c+1,d=d+1){ 11 printf("%c-%c:", (u_char)(c|0x20),(u_char)(d|0x20)); 12 } 13 printf(" "); 14 15 }
a-a:b-b:c-c:d-d:e-e:f-f:g-g:h-h:i-i:j-j:k-k:l-l:m-m:n-n:o-o:p-p:q-q:r-r:s-s:t-t:u-u:v-v:w-w:x-x:y-y:z-z: