check uppercase c++
#include <iostream>
#include <cctype>
int main() {
char inputChar;
std::cout << "Enter a character: ";
std::cin >> inputChar;
if (std::isupper(inputChar)) {
std::cout << "The entered character is uppercase." << std::endl;
} else {
std::cout << "The entered character is not uppercase." << std::endl;
}
return 0;
}