- 博客(4)
- 收藏
- 关注
原创 整数152的各位数字
#include <iostream> int main() { int num = 152; int units = num % 10; // 获取个位数字 int tens = (num / 10) % 10; // 获取十位数字 int hundreds = num / 100; // 获取百位数字 std::cout << num << " = " << units << " + " << tens << "
2024-03-31 20:27:48
423
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅
1