loading...

Pascal :: Menghitung Faktorial

Script berikut akan melakukan perhitungan faktorial dari bilangan yang diinputkan, silahkan dicoba sendiri.

program Faktorial;
uses wincrt;
procedure faktorial (var fak, hasil : integer);
var
i:integer;
begin
hasil := 1;
for i := 2 to fak do
hasil := Hasil * i;
End;
Var
N,Hasil_fak:integer;
Begin
Write ('Nilai yang akan difaktorialkan = '); Readln (N);
Faktorial (N,Hasil_Fak); Writeln;
Writeln ('Hasil Faktorial = ',Hasil_fak);
End.

18 Responses to Pascal :: Menghitung Faktorial

  1. ANONIMOUS says:

    ko kalo diinput 8 dst hasilnya minus ya?
    tapi kalo diinput 1-7 hasilnya benar…

  2. fitry says:

    kok tidak bisa ya

  3. … [Trackback]

    […] Find More on|Find More|Read More Infos here|There you will find 72989 more Infos|Informations on that Topic: blog.loksado.com/pascal-menghitung-faktorial […]

  4. zdporn.com says:

    … [Trackback]

    […] Find More on|Find More|Read More Infos here|There you will find 82700 additional Infos|Infos on that Topic: blog.loksado.com/pascal-menghitung-faktorial […]

  5. … [Trackback]

    […] Read More here|Read More|Read More Informations here|Here you can find 27933 more Informations|Infos to that Topic: blog.loksado.com/pascal-menghitung-faktorial […]

  6. … [Trackback]

    […] Read More here|Read More|Find More Infos here|There you can find 67303 more Infos|Infos on that Topic: blog.loksado.com/pascal-menghitung-faktorial […]

  7. … [Trackback]

    […] Find More on|Find More|Read More Informations here|There you will find 7492 more Informations|Informations to that Topic: blog.loksado.com/pascal-menghitung-faktorial […]

  8. … [Trackback]

    […] Read More on|Read More|Read More Informations here|There you will find 70332 more Informations|Infos on that Topic: blog.loksado.com/pascal-menghitung-faktorial […]

  9. site web says:

    … [Trackback]

    […] Read More on|Read More|Find More Informations here|Here you will find 29342 additional Informations|Informations to that Topic: blog.loksado.com/pascal-menghitung-faktorial […]

  10. … [Trackback]

    […] Read More here|Read More|Find More Infos here|There you will find 77891 additional Infos|Informations on that Topic: blog.loksado.com/pascal-menghitung-faktorial […]

  11. cpnsnews.com says:

    … [Trackback]

    […] Read More here|Read More|Find More Infos here|Here you will find 84188 more Infos|Infos on that Topic: blog.loksado.com/pascal-menghitung-faktorial […]

  12. DMPK Studies says:

    … [Trackback]

    […] Read More on|Read More|Find More Infos here|There you will find 1917 more Infos|Informations to that Topic: blog.loksado.com/pascal-menghitung-faktorial […]

  13. … [Trackback]

    […] Find More on|Find More|Find More Infos here|There you can find 22639 more Infos|Informations to that Topic: blog.loksado.com/pascal-menghitung-faktorial […]

  14. … [Trackback]

    […] Read More here|Read More|Read More Informations here|There you will find 38243 additional Informations|Informations to that Topic: blog.loksado.com/pascal-menghitung-faktorial […]

  15. Agen Bola says:

    … [Trackback]

    […] Read More here|Read More|Find More Informations here|There you can find 19089 more Informations|Infos to that Topic: blog.loksado.com/pascal-menghitung-faktorial […]

  16. … [Trackback]

    […] Find More on|Find More|Find More Infos here|Here you can find 30900 more Infos|Informations to that Topic: blog.loksado.com/pascal-menghitung-faktorial […]

  17. kokibola says:

    … [Trackback]

    […] Find More here|Find More|Find More Informations here|Here you will find 85993 more Informations|Infos on that Topic: blog.loksado.com/pascal-menghitung-faktorial […]

  18. Law Diyala says:

    … [Trackback]

    […] Find More on|Find More|Read More Infos here|There you will find 42628 more Infos|Informations to that Topic: blog.loksado.com/pascal-menghitung-faktorial […]

Mari berdiskusi dengan santun...