Pangram is a sentence that uses every letter of a given alphabet at least once. It is also known as holoalphabetic sentence.
The best known English pangram is “The quick brown fox jumps over the lazy dog.” You might have seen this sentence in Notepad or in MS Word when you try choosing a font in the font settings dialog box. Softwares use it to display font samples. Pangrams are also used totest equipment and improve skills in handwriting, calligraphy and keyboarding.
Pangram Calligraphy
Read the HackerRank problem statement here: https://www.hackerrank.com/challenges/pangrams/problem
C code:
#include<stdio.h> #include<string.h> #include<stdlib.h> #include<stdbool.h>
int main(void) { char s[1000]; int i, index; bool alpha_26[26];
fgets(s, 1000, stdin);
for(i=0;i<strlen(s);i++){
if(s\[i\]>='A' && s\[i\]<='Z'){
index=s\[i\]-65;
}else if(s\[i\]>='a' && s\[i\]<='z'){
index=s\[i\]-97;
}
alpha\_26\[index\]=true;
}
for(i=0;i<26;i++){
if(alpha\_26\[i\]==false){
printf("not pangram\\n");
exit(0);
}
}
printf("pangram\\n");
return 0;
}
Here is a list of other pangrams: https://gist.github.com/thecoducer/f8a26c478a9acbe8288fdadffdf782a2. You can run the code locally and try checking the pangrams in this list.