摘要:
输入:三个数; 输出:三个数中最大的数。 #include <iostream> using namespace std; int main() { int a, b, c = 0; cout << "输入3个数:" << endl; cin >> a >> b >> c; int n = 0; i 阅读全文
posted @ 2025-05-11 16:47
lunaMos
阅读(64)
评论(0)
推荐(0)
摘要:
使用C++ 完成输入多位数字的数位求和,比如输入123,输出6(1+2+3); #include <iostream> using namespace std; int main() { int i,count = 0; cout << "输入一个N位数:" << endl; cin >> i ; 阅读全文
posted @ 2025-05-11 16:16
lunaMos
阅读(59)
评论(0)
推荐(0)

浙公网安备 33010602011771号