At Westonci.ca, we connect you with the best answers from a community of experienced and knowledgeable individuals. Get quick and reliable solutions to your questions from a community of seasoned experts on our user-friendly platform. Experience the ease of finding precise answers to your questions from a knowledgeable community of experts.

Write a program that reads one line of input as a string and writes one line of output consisting of nothing more than the number of uppercase letters in the string that are immediately followed by a lowercase letter. For example, if the input string is Chancellor Gene Block of UCLA lives in SoCal then the output must be simply 5 (for the Ch, Ge, Bl, So, and Ca; notice that the character immediately after the A of UCLA is a space character, not the l of lives). The program must not write a prompt for its input.