Flochart
list program C++
#include <iostream>
#include <string>
using namespace std;
int main()
{
string raptor_prompt_variable_zzyz;
int n;
int i;
int faktorial;
raptor_prompt_variable_zzyz ="masukkan_angka";
cout << raptor_prompt_variable_zzyz << endl;
cin >> n;
faktorial =1;
i =1;
while (!(i>n))
{
faktorial =faktorial*i;
i =i+1;
}
cout << faktorial << endl;
system ("pause");
return 0;
}
0 comments:
Posting Komentar