Skip to content

Commit 08586dd

Browse files
committed
Word Capitalization
1 parent a8ca808 commit 08586dd

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

281A.cpp

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#include<iostream>
2+
#include<string>
3+
using namespace std;
4+
5+
int main(){
6+
string s;
7+
cin>>s;
8+
if(s[0] >= 97){
9+
10+
s[0] = s[0] - 32;
11+
}
12+
cout<<s<<endl;
13+
return 0;
14+
}

0 commit comments

Comments
 (0)