给出一个不多于3位的正整数n要求求出它是几位数。并上机实验。c++代码if语句 不含其他 日期: 2028-01-28 标签: 社会 #include using namespace std; int main() { int n; cin>>n; if(n<10) cout<<"1位数"; else if(n<100) cout<<"2位数"; else cout<<"3位数"; return 0; } 原文地址: https://www.cveoy.top/t/topic/JsT 著作权归作者所有。请勿转载和采集! 免费AI点我,无需注册和登录