Breaking News
recent

Program Faktorial C++

#include <iostream>

using namespace std;

int main()
{
int faktorial,x, i;
    faktorial = 1;
    x=5;
    for(i=1; i<=x; i++)
    {
        faktorial=faktorial*i;
    }
    cout << faktorial;
}

Ahmad

Ahmad

No comments:

Post a Comment

Powered by Blogger.