freq.c
Go to the documentation of this file.
00001 #include <stdio.h>
00002 #include <ctype.h>
00003 
00004 char a[26];
00005 
00006 main()
00007 {
00008   int i, c;
00009 
00010   for(i = 0; i < 26; i++) a[i] = 0;
00011   while ((c = getchar()) != EOF) {
00012     i = tolower(c) - 'a';
00013     if(i >= 0 && i < 26) a[i] += 1;
00014     a[i] %= 10;
00015   }
00016   for(i = 0; i < 26; i++) putchar(a[i]+'0');
00017   putchar('\n');
00018 }


euslisp
Author(s): Toshihiro Matsui
autogenerated on Thu Jun 6 2019 18:05:53