string c++ if letter is lowercase
#include <iostream>
#include <string>
using namespace std;
int main() {
string input;
cout << "Enter a string: ";
cin >> input;
for (char &c : input) {
if (islower(c)) {
cout << c << " is a lowercase letter." << endl;
}
}
return 0;
}