Question: 1. 2. C++ Given the code: string s; cout >s; Write a loop that will convert all lower case characters in the string s to
1.

2.

C++
Given the code: string s; cout >s; Write a loop that will convert all lower case characters in the string s to uppercase. Print the modified string s after the loop. Note that s can be a string of any length. Example Output 1 Enter a string of any length: Hello HELLO Example Output 2 Enter a string of any length: Goodbye GOODBYE Write a nested loop to print the following for any nxn image of odd dimensions: Example Output (if n==5): ): OXOXO Example Output (if n==3)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
