Advertisement
FuncaosCAndCPluplus

Function_toupper_and_islower

Aug 16th, 2016
1,193
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //#include <stdio.h>
  2. //#include <stdlib.h>
  3. #include <iostream>
  4. //#include <string.h>
  5. using namespace std;
  6.    
  7. int main() {
  8.          
  9.     // Se ok minusculo exibe or se ok Maiusculo Exibe !
  10.     char a  = 'a';  
  11.     char b  = 'A';       
  12.  
  13.     if(islower(a)){
  14.        
  15.         cout<<"E Minusculo"<<endl;
  16.          
  17.     }
  18.    
  19.    if(toupper(b)){
  20.  
  21.        cout<<"E Maiusculo"<<endl;
  22.        
  23.    }
  24.    
  25.     return 0;
  26. }
Advertisement
RAW Paste Data Copied
Advertisement