Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // https://codeforces.com/problemset/problem/281/A
- // Example program
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- string inputString;
- cin >> inputString;
- if(int(inputString.at(0))>=97)
- {
- int newChar = inputString.at(0) -=32;
- inputString.at(0) = char(newChar);
- cout << inputString;
- }
- else{
- cout << inputString;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement