kunshao 题解分享 · 2025/3/10
判断是否为两位数 - 题解
``` //判断是否为两位数 (n / 10) > 0 && (n / 100 < 1) #include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; if ( n / 10 > 0 && n / 100 < 1 ) { cout << 1; } else { cout << 0; } return 0; } ```
查看全文
0 0 0 3