CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <iostream>
using namespace std;
int main() {
string word;
//int excess;
getline(cin, word);
int len = word.length();
// for loop changes all the letters to lower case
for(int i = 0; i < len; i++){
if(word[i] == 32){
continue;
}
else if(word[i] < 97){
word[i] = word[i] + 32;
}
}
for(int i = 0; i < len; i++){
if(word[i] == 32){
continue ;
}
//word[i] = word[i] + 25;
if(word[i] < 123){
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run