階乘後面0的數量

n的階乘後面有多少個0? 6的階乘 = 1*2*3*4*5*6 = 720,720後面有1個0。ios #include <iostream> using namespace std; int main() { int N; cin >> N; int result = 0; while (N) { result += N/5;
相關文章
相關標籤/搜索