From 7ded7fb26348e45005abc0490cb0fec2c2d90503 Mon Sep 17 00:00:00 2001 From: Enkk17 <86929986+Enkk17@users.noreply.github.com> Date: Wed, 19 Oct 2022 21:41:06 +0200 Subject: [PATCH] check_uppercase_letters program that checks if there is an uppercase letter in a phrase --- check_uppercase_letters.cpp | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 check_uppercase_letters.cpp diff --git a/check_uppercase_letters.cpp b/check_uppercase_letters.cpp new file mode 100644 index 0000000..807a3bc --- /dev/null +++ b/check_uppercase_letters.cpp @@ -0,0 +1,39 @@ +#include +#include + +using namespace std; + +bool checking(string phrase); + +int main() +{ + string phrase; + int lung,ris; + int cont=0; + cout<<" enter the phrase: "; + getline(cin,phrase); + + ris=checking(phrase); + if(ris==0){ + cout<<"there are no capital letters"<='A'&&phrase[i]<='Z') + { + check=true; + } + } + + return check; +}