text = "mQmPtphqGrboHhmgaqVhCdwTwignlQvjIopDqVpgaNrwkAzVcnkHyNiPdSmgJmgrPiMjpnjdbuPucHnouwfKuPcybromnmbvfxJqRnnOvWsceZeYzRyqnkaaFsffjenxoIhqHnIzorlOdwZoxYmAuNwNnRppguwidvbtOqdbUngpZdbGqwYjfpLzPjRtwVwEqBbYmCqbKwuziCoEwPsIkJgruTbhdyWpvPztAodufjZxLaZcUeFaklSmeRfolohVbXoDfIqMqgIrQhzedqZlFwaBndQkQexBdLsCfXebrEfiOnSgYquyaqohxoDmLdDhwoOpgtkuRzeYziuvnuvnUuOtqasZueYpKfAkmKcJcWeocQvJguVsZfVovgrztAiryZivHqyMjoLyJdklKifmoWeOjVnogiiaBzDfrsWlOeAzPxltamqQiujZrpZrUcIlyktdJbhmNpDbltOlLnAqVhcxgObghpdcScgIiayqygUgwatiEzgzTsZgApUbbPynLfbzehzWsxcPbdcdfMucsCzjkWvjhMkiWuHfquqrcKwedqghiyHyMkSayRegeJcGw"
count = 0
for i in 0...text.size
if (text.eql?(text.downcase()))
count+=1
end
end
public int lowerCaseCount(String string){
int pivot = 0, sum = 0;
while (true){
try{
if(Character.isLowerCase(string.charAt(pivot))){
sum ++;
}
pivot++;
}catch (StringIndexOutOfBoundsException e) {
return sum;
}
}
}
#include <iostream>
#include <string>
#include <ctype.h>
using namespace std;
int main ()
{
string s=" ** string deleted for forum sanity **";
int j=s.length();
long l=0;
for (int i=0; i<=j; i++)
{
char c=s[i];
if (islower(c))
l++;
}
cout << l;
return 0;
}