Skip to content

Instantly share code, notes, and snippets.

@funrep
Created September 22, 2012 21:48
Show Gist options
  • Save funrep/3767939 to your computer and use it in GitHub Desktop.
Save funrep/3767939 to your computer and use it in GitHub Desktop.
sasads
#include <stdio.h>
main()
{
int c, wc, count[10];
count[0] = 0;
count[1] = 0;
count[2] = 0;
count[3] = 0;
count[4] = 0;
count[5] = 0;
count[6] = 0;
count[7] = 0;
count[8] = 0;
count[9] = 0;
count[10] = 0;
while ((c = getchar()) != EOF) {
if (c != ' ' && c != '\t' && != '\n')
++count[c];
if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment