Editorial for 0.Tính giai thừa


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

Tính giai thừa


Comments


  • 0
    TICHPX  commented on Oct. 5, 2018, 7:10 a.m.

    Hướng dẫn

    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        long long n,s=1;
        cin>>n;
        while(n) s*=n--;
        cout<<s;
    }