Advertisement
Guest User

new

a guest
Nov 24th, 2020
8
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main () {
  6.    
  7.     char x;
  8.    
  9.     cout << "Digite um caratere minúsculo: ";
  10.     cin >> x;  
  11.    
  12.     x -= 'a' - 'A';
  13.        
  14.     cout << "Este caractere maiúsculo é: " <<  x;
  15.        
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement