diff --git a/Pangram func.cc b/Pangram func.cc new file mode 100644 index 0000000..9f0c3fd --- /dev/null +++ b/Pangram func.cc @@ -0,0 +1,30 @@ +#include +#include +#include +void isPangram() +{ + int i; + char str[26]; + cout << "Enter a string to check if its Pangram or not: "; + for (i = 0; i < 26; i++) { + cin >> str[i]; + + if ((str[i] >= 97 && str[i] <= 122)||((str[i] >= 65 && str[i] <= 91)) + { + + cout << "It is Pangram" << endl; + break; + } else { + cout << "it is not Pangram" << endl; + break; + } + + } +} + +int main() +{ + isPangram(); + getch(); + return 0; +} \ No newline at end of file