Algorithm
Code Examples
#1 Code Example with C++ Programming
Code -
C++ Programming
#include<iostream>
#include<string>
using namespace std;
int main(){
string s;
cin>>s;
if(s[0] >= 97){
s[0] = s[0] - 32;
}
cout<<s<<endl;
return 0;
}
Copy The Code &
Try With Live Editor
Input
ApPLe
Output
ApPLe
Demonstration
Codeforcess Solution 281-A A. Word Capitalization ,C++, Java, Js and Python,281-A,Codeforcess Solution