From ef9dfb5d8bfa705a0c056a2652d298e5ebb763fb Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Wed, 22 Feb 2023 20:18:04 +0200 Subject: Solved a bunch of problems --- codeforces/Word/main.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'codeforces/Word/main.cpp') diff --git a/codeforces/Word/main.cpp b/codeforces/Word/main.cpp index 31937b2..d32a6ca 100755 --- a/codeforces/Word/main.cpp +++ b/codeforces/Word/main.cpp @@ -1,30 +1,30 @@ -#include +#include #include using namespace std; string convertLower(string s) { - for(auto &ch : s) { + for (auto &ch : s) { ch = tolower(ch); } return s; } string convertUpper(string s) { - for(auto &ch : s) { + for (auto &ch : s) { ch = toupper(ch); } return s; } -int main () { - ios_base::sync_with_stdio(false); - cin.tie(NULL); +int main() { + ios_base::sync_with_stdio(false); + cin.tie(NULL); string s; cin >> s; int l = 0; int u = 0; - for(auto ch : s) { - if(islower(ch)) { + for (auto ch : s) { + if (islower(ch)) { l++; } else { u++; -- cgit v1.2.3