Files
python/C++课程/第十课逻辑表达式和条件表达式/p75_2.cpp

22 lines
293 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#include<iostream>
#include<cstdio>
#include<ctype.h>
using namespace std;
int main(void) {
int n, key1, key2;
cin >> n;
key1 = n % 123;
key2 = n % 91;
if(islower(key1))
putchar(key1);
else if(isupper(key2))
putchar(key2);
else
putchar('*');
return 0;
}