Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <iomanip>
- #include <string>
- using namespace std;
- int main() {
- string s;
- char c;
- cin >> s;
- c = s[0];
- if (c >= 'A' && c <= 'Z') {
- cout << c;
- }else{
- int temp;
- temp = c - 'A';
- c = 'a' + temp;
- cout <<c;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement