hi
I have to write a program of a vertical histogram of the letters of the alphabets.It should be like
* *
* * *
* * * *
* * * *
a b d f
so far i have been able to calculate the frequency of the letters in the text but i have no idea as to how to print them vertically can anyone plz tell me how to do it
Code:# include <stdio.h> main() { int c; int ar[26]; for (i = 0; i < 26; i++) ar[i] = 0; while ((c = getchar()) != EOF) { if (c >= 'a' && c <= 'z') ++ar[c - 'a']; } }