From 693361cecb5777de2697a82ceb33a99768f2484d Mon Sep 17 00:00:00 2001 From: Luis Bonilla Date: Tue, 3 Oct 2017 10:33:29 -0500 Subject: [PATCH] Pangram function --- Pangram func.cc | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Pangram func.cc 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