Panagram In C

[Solved] Panagram In C | C - Code Explorer | yomemimo.com
Question : panagram in c

Answered by : prickly-puma-nw0iuopvu7bp

#include<stdio.h>
#include<conio.h>
void main()
{ char str[100]="The quick brown fox jumps over the lazy dog"; int i,value[26]={0},count=0; for(i=0;str[i]!='\0';i++) { if('a'<=str[i] && str[i]<='z') { count+=!value[str[i]-'a']; value[str[i]-'a']=1; } else if('A'<=str[i] && str[i]<='Z') { count+=!value[str[i]-'A']; value[str[i]-'A']=1; } } if(count==26) { printf("The String is a Pangram String."); } else { printf("The String is not a Pangram String."); } getch();
}

Source : https://programmingtrick.com/write-a-c-program-to-check-whether-the-given-string-is-pangram-or-not | Last Update : Thu, 08 Jul 21

Answers related to panagram in c

Code Explorer Popular Question For C