问题描述
给定一个英文字母判断这个字母是大写还是小写。
输入格式
输入只包含一个英文字母c。
输出格式
如果c是大写字母,输出“upper”,否则输出“lower”。
样例输入
x
样例输出
lower
样例输入
B
样例输出
upper
#include<iostream>
#include<cstdlib>
#include<string>
using namespace std;
int main()
{
string s;
cin >> s;
if(isupper(s[0]))
cout << "upper" << endl;
else cout << "lower" << endl;
return 0;
}