Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. #include <iomanip>
  4. #include <string>
  5. using namespace std;
  6.  
  7. int main() {
  8. string s;
  9. char c;
  10. cin >> s;
  11. c = s[0];
  12. if (c >= 'A' && c <= 'Z') {
  13. cout << c;
  14. }else{
  15. int temp;
  16. temp = c - 'A';
  17. c = 'a' + temp;
  18. cout <<c;
  19. }
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement