Instructions:
Example:
Enter string: Philippines
#include <iostream>
#include <string>
#include <cctype>
using namespace std;
int main() {
string inputString = "";
cout<<"Enter string: ";
getline(cin, inputString);
int i;
for(i=0; !isupper(inputString[i]);i++ )
;
cout<<i;
return 0;
}
Comments
Leave a comment