SlideShare a Scribd company logo
1 of 2
1. Jlh : 1! + 2! + 9! + 16! + 25! …. N!
Procedure Faktorial (Input i : integer, output h : integer)
Deklarasi :
n : integer
Deskripsi :
If i = 1 then
h←1
else
h←1
for n ← 2 to i do
h ← h*n
end for
end if
{Algoritma Faktorial}
Deklarasi :
b,N,Fak,hasil, hasil-akhir : integer
Deskripsi :
Read (N)
b←1
hasil akhir ← 0
for b to N do
fak ← SQR(B)
faktorial (fak, hasil)
hasil_akhir ← hasil_akhir + hasil
end for
write (hasil_akhir)
2.

x (Y2)! x (X2)!

Procedure faktorial (input i : integer, output h : integer)
Deklarasi :
R : integer
Deskripsi :
If i = 1 then
h←1
else
h←1
for n ← 2 to i do
h ← h*n
end for
end if
{Algoritma Faktorial}
Deklarasi :
X,Y, hsl Y,XY, hsl XY, YK,hsl YK, XK, hsl XK : integer
Hasil_akhir : real
Deskripsi :
Read (X)
Read (Y)
Faktorial (Y, hsl Y)
XY ← (X*Y)
Faktorial (XY, hsl XY)
YK ← SQR (Y)
Faktorial (YK, hsl YK)
XK ← SQR (X)
Faktorial (XK, hsl XK)
hasil_akhir ← (hsl XY/hsl Y) * hsl YK * hsl XK
write (hasil_akhir)

More Related Content

What's hot (19)

simulasi6
simulasi6simulasi6
simulasi6
 
1
11
1
 
penerimaan total dan fungsi produksi
penerimaan total dan fungsi produksipenerimaan total dan fungsi produksi
penerimaan total dan fungsi produksi
 
4 penerimaan total dan fungsi produksi
4 penerimaan total dan fungsi produksi4 penerimaan total dan fungsi produksi
4 penerimaan total dan fungsi produksi
 
Latihan AlPro-I
Latihan AlPro-ILatihan AlPro-I
Latihan AlPro-I
 
Teori bahasa dan automata5b
Teori bahasa dan automata5bTeori bahasa dan automata5b
Teori bahasa dan automata5b
 
Kelompok 2.3
Kelompok 2.3Kelompok 2.3
Kelompok 2.3
 
Kelompok 2.3
Kelompok 2.3Kelompok 2.3
Kelompok 2.3
 
Alternatif 1 3.2
Alternatif 1 3.2Alternatif 1 3.2
Alternatif 1 3.2
 
Lembar kerja logaritma supervisi
Lembar kerja logaritma supervisiLembar kerja logaritma supervisi
Lembar kerja logaritma supervisi
 
Japaness multiplification 3 variables and 4 variables
Japaness multiplification 3 variables and 4 variablesJapaness multiplification 3 variables and 4 variables
Japaness multiplification 3 variables and 4 variables
 
Integral print
Integral printIntegral print
Integral print
 
Ictbilbul
IctbilbulIctbilbul
Ictbilbul
 
Digital signature
Digital signatureDigital signature
Digital signature
 
Bab 3 operator
Bab 3 operatorBab 3 operator
Bab 3 operator
 
22.algoritma el gamal
22.algoritma el gamal22.algoritma el gamal
22.algoritma el gamal
 
Pertemuan 9 pemutaran kembali flowchart
Pertemuan 9   pemutaran kembali flowchartPertemuan 9   pemutaran kembali flowchart
Pertemuan 9 pemutaran kembali flowchart
 
Ppt ganjil genap2
Ppt ganjil genap2Ppt ganjil genap2
Ppt ganjil genap2
 
Ppt ganjil genap
Ppt ganjil genapPpt ganjil genap
Ppt ganjil genap
 

Viewers also liked

Isgtncon 2015 sessions (1) 1
Isgtncon 2015 sessions (1) 1Isgtncon 2015 sessions (1) 1
Isgtncon 2015 sessions (1) 1rrsolution
 
Slide 7
Slide 7Slide 7
Slide 7home
 
Contoh tugas 1
Contoh tugas 1Contoh tugas 1
Contoh tugas 1Av Ri
 
Minit mesyuarat program
Minit mesyuarat programMinit mesyuarat program
Minit mesyuarat programsiewtingyeo
 
KELOMPOK ASTROFISIKA 2015
KELOMPOK ASTROFISIKA 2015KELOMPOK ASTROFISIKA 2015
KELOMPOK ASTROFISIKA 2015Rian Sogen
 
Sesion 2 (TIPOS DE COMUNICACION)
Sesion 2 (TIPOS DE COMUNICACION) Sesion 2 (TIPOS DE COMUNICACION)
Sesion 2 (TIPOS DE COMUNICACION) YELSIN CONDE
 
FM Radio Program Script
FM Radio Program ScriptFM Radio Program Script
FM Radio Program ScriptRoxanne Robes
 
Tugas 2
Tugas 2Tugas 2
Tugas 2Av Ri
 
Bibliotecas escolares oei chile 2015
Bibliotecas escolares oei chile 2015Bibliotecas escolares oei chile 2015
Bibliotecas escolares oei chile 2015Angelina Costa
 

Viewers also liked (14)

Isgtncon 2015 sessions (1) 1
Isgtncon 2015 sessions (1) 1Isgtncon 2015 sessions (1) 1
Isgtncon 2015 sessions (1) 1
 
Slide 7
Slide 7Slide 7
Slide 7
 
Contoh tugas 1
Contoh tugas 1Contoh tugas 1
Contoh tugas 1
 
Artes plasticas
Artes plasticasArtes plasticas
Artes plasticas
 
MyChola
MyCholaMyChola
MyChola
 
Siepietnica
SiepietnicaSiepietnica
Siepietnica
 
Minit mesyuarat program
Minit mesyuarat programMinit mesyuarat program
Minit mesyuarat program
 
Santarém trabalho final ppt
Santarém trabalho final pptSantarém trabalho final ppt
Santarém trabalho final ppt
 
KELOMPOK ASTROFISIKA 2015
KELOMPOK ASTROFISIKA 2015KELOMPOK ASTROFISIKA 2015
KELOMPOK ASTROFISIKA 2015
 
M El Shahawy CV Pic (2)
M El Shahawy CV Pic (2)M El Shahawy CV Pic (2)
M El Shahawy CV Pic (2)
 
Sesion 2 (TIPOS DE COMUNICACION)
Sesion 2 (TIPOS DE COMUNICACION) Sesion 2 (TIPOS DE COMUNICACION)
Sesion 2 (TIPOS DE COMUNICACION)
 
FM Radio Program Script
FM Radio Program ScriptFM Radio Program Script
FM Radio Program Script
 
Tugas 2
Tugas 2Tugas 2
Tugas 2
 
Bibliotecas escolares oei chile 2015
Bibliotecas escolares oei chile 2015Bibliotecas escolares oei chile 2015
Bibliotecas escolares oei chile 2015
 

Similar to Tugas 3

2013 4-Algoritma Design and Analysis Recurrence.ppt
2013 4-Algoritma Design and Analysis Recurrence.ppt2013 4-Algoritma Design and Analysis Recurrence.ppt
2013 4-Algoritma Design and Analysis Recurrence.pptEriekOrlando
 
Referensi Materi Algoritma Brute Force Bagian 1
Referensi Materi Algoritma Brute Force Bagian 1Referensi Materi Algoritma Brute Force Bagian 1
Referensi Materi Algoritma Brute Force Bagian 1DEDEALAMSYAHSPd
 
Reed solomon code
Reed solomon codeReed solomon code
Reed solomon codeundeed
 
Sttm tm 04 modul 2 fungsi dan limit fungsi revisi
Sttm tm 04 modul 2 fungsi dan limit fungsi revisiSttm tm 04 modul 2 fungsi dan limit fungsi revisi
Sttm tm 04 modul 2 fungsi dan limit fungsi revisiPrayudi MT
 
Sttm tm 03 modul 2 fungsi dan limit fungsi revisi
Sttm tm 03 modul 2 fungsi dan limit fungsi revisiSttm tm 03 modul 2 fungsi dan limit fungsi revisi
Sttm tm 03 modul 2 fungsi dan limit fungsi revisiPrayudi MT
 
Kalkulus modul 2 fungsi dan limit fungsi revisi
Kalkulus modul 2 fungsi dan limit fungsi revisiKalkulus modul 2 fungsi dan limit fungsi revisi
Kalkulus modul 2 fungsi dan limit fungsi revisiPrayudi MT
 
Matematika Diskrit - 11 kompleksitas algoritma - 04
Matematika Diskrit - 11 kompleksitas algoritma - 04Matematika Diskrit - 11 kompleksitas algoritma - 04
Matematika Diskrit - 11 kompleksitas algoritma - 04KuliahKita
 
1-FUNGSI TRASENDEN (Logaritma murni).pptx
1-FUNGSI TRASENDEN (Logaritma murni).pptx1-FUNGSI TRASENDEN (Logaritma murni).pptx
1-FUNGSI TRASENDEN (Logaritma murni).pptxMunajiMoena
 
Kalkulus2 part2 d
Kalkulus2 part2 dKalkulus2 part2 d
Kalkulus2 part2 dAgus S
 

Similar to Tugas 3 (20)

2013 4-Algoritma Design and Analysis Recurrence.ppt
2013 4-Algoritma Design and Analysis Recurrence.ppt2013 4-Algoritma Design and Analysis Recurrence.ppt
2013 4-Algoritma Design and Analysis Recurrence.ppt
 
Referensi Materi Algoritma Brute Force Bagian 1
Referensi Materi Algoritma Brute Force Bagian 1Referensi Materi Algoritma Brute Force Bagian 1
Referensi Materi Algoritma Brute Force Bagian 1
 
Latihan individu no1
Latihan individu no1Latihan individu no1
Latihan individu no1
 
Latihan individu no.1
Latihan individu no.1Latihan individu no.1
Latihan individu no.1
 
Fungsi
FungsiFungsi
Fungsi
 
modul algoritma Bab 7 record
modul algoritma Bab 7 recordmodul algoritma Bab 7 record
modul algoritma Bab 7 record
 
Reed solomon code
Reed solomon codeReed solomon code
Reed solomon code
 
fungsi .pptx
fungsi .pptxfungsi .pptx
fungsi .pptx
 
Satu
SatuSatu
Satu
 
Fungsi dan grafik
Fungsi dan grafikFungsi dan grafik
Fungsi dan grafik
 
Sttm tm 04 modul 2 fungsi dan limit fungsi revisi
Sttm tm 04 modul 2 fungsi dan limit fungsi revisiSttm tm 04 modul 2 fungsi dan limit fungsi revisi
Sttm tm 04 modul 2 fungsi dan limit fungsi revisi
 
Sttm tm 03 modul 2 fungsi dan limit fungsi revisi
Sttm tm 03 modul 2 fungsi dan limit fungsi revisiSttm tm 03 modul 2 fungsi dan limit fungsi revisi
Sttm tm 03 modul 2 fungsi dan limit fungsi revisi
 
Kalkulus modul 2 fungsi dan limit fungsi revisi
Kalkulus modul 2 fungsi dan limit fungsi revisiKalkulus modul 2 fungsi dan limit fungsi revisi
Kalkulus modul 2 fungsi dan limit fungsi revisi
 
Matematika Diskrit - 11 kompleksitas algoritma - 04
Matematika Diskrit - 11 kompleksitas algoritma - 04Matematika Diskrit - 11 kompleksitas algoritma - 04
Matematika Diskrit - 11 kompleksitas algoritma - 04
 
1-FUNGSI TRASENDEN (Logaritma murni).pptx
1-FUNGSI TRASENDEN (Logaritma murni).pptx1-FUNGSI TRASENDEN (Logaritma murni).pptx
1-FUNGSI TRASENDEN (Logaritma murni).pptx
 
modul algoritma Bab 5
modul algoritma Bab 5modul algoritma Bab 5
modul algoritma Bab 5
 
Kalkulus2 part2 d
Kalkulus2 part2 dKalkulus2 part2 d
Kalkulus2 part2 d
 
13184085.ppt
13184085.ppt13184085.ppt
13184085.ppt
 
Fungsi dan grafik
Fungsi dan grafikFungsi dan grafik
Fungsi dan grafik
 
6 pencocokan-kurva
6 pencocokan-kurva6 pencocokan-kurva
6 pencocokan-kurva
 

More from Av Ri

Ocd 3.0
Ocd 3.0Ocd 3.0
Ocd 3.0Av Ri
 
Ocd 3.5
Ocd 3.5Ocd 3.5
Ocd 3.5Av Ri
 
Tugas simbad
Tugas simbadTugas simbad
Tugas simbadAv Ri
 
Tugas1
Tugas1Tugas1
Tugas1Av Ri
 
Tugas 1
Tugas 1Tugas 1
Tugas 1Av Ri
 
Tugas2
Tugas2Tugas2
Tugas2Av Ri
 
Tugas1
Tugas1Tugas1
Tugas1Av Ri
 
Tugas3
Tugas3Tugas3
Tugas3Av Ri
 
Tugas p kn
Tugas p knTugas p kn
Tugas p knAv Ri
 
Tugas 1
Tugas 1Tugas 1
Tugas 1Av Ri
 
Tugas3
Tugas3Tugas3
Tugas3Av Ri
 
Tugas2
Tugas2Tugas2
Tugas2Av Ri
 
Tugas1
Tugas1Tugas1
Tugas1Av Ri
 
Tugas4
Tugas4Tugas4
Tugas4Av Ri
 
Logika
LogikaLogika
LogikaAv Ri
 
Logika
LogikaLogika
LogikaAv Ri
 
Tugas 3
Tugas 3Tugas 3
Tugas 3Av Ri
 
Tugas 2
Tugas 2Tugas 2
Tugas 2Av Ri
 
Tugas 1
Tugas 1Tugas 1
Tugas 1Av Ri
 

More from Av Ri (20)

Ocd 3.0
Ocd 3.0Ocd 3.0
Ocd 3.0
 
Ocd
OcdOcd
Ocd
 
Ocd 3.5
Ocd 3.5Ocd 3.5
Ocd 3.5
 
Tugas simbad
Tugas simbadTugas simbad
Tugas simbad
 
Tugas1
Tugas1Tugas1
Tugas1
 
Tugas 1
Tugas 1Tugas 1
Tugas 1
 
Tugas2
Tugas2Tugas2
Tugas2
 
Tugas1
Tugas1Tugas1
Tugas1
 
Tugas3
Tugas3Tugas3
Tugas3
 
Tugas p kn
Tugas p knTugas p kn
Tugas p kn
 
Tugas 1
Tugas 1Tugas 1
Tugas 1
 
Tugas3
Tugas3Tugas3
Tugas3
 
Tugas2
Tugas2Tugas2
Tugas2
 
Tugas1
Tugas1Tugas1
Tugas1
 
Tugas4
Tugas4Tugas4
Tugas4
 
Logika
LogikaLogika
Logika
 
Logika
LogikaLogika
Logika
 
Tugas 3
Tugas 3Tugas 3
Tugas 3
 
Tugas 2
Tugas 2Tugas 2
Tugas 2
 
Tugas 1
Tugas 1Tugas 1
Tugas 1
 

Tugas 3

  • 1. 1. Jlh : 1! + 2! + 9! + 16! + 25! …. N! Procedure Faktorial (Input i : integer, output h : integer) Deklarasi : n : integer Deskripsi : If i = 1 then h←1 else h←1 for n ← 2 to i do h ← h*n end for end if {Algoritma Faktorial} Deklarasi : b,N,Fak,hasil, hasil-akhir : integer Deskripsi : Read (N) b←1 hasil akhir ← 0 for b to N do fak ← SQR(B) faktorial (fak, hasil) hasil_akhir ← hasil_akhir + hasil end for write (hasil_akhir) 2. x (Y2)! x (X2)! Procedure faktorial (input i : integer, output h : integer) Deklarasi : R : integer Deskripsi : If i = 1 then h←1 else h←1 for n ← 2 to i do h ← h*n end for end if
  • 2. {Algoritma Faktorial} Deklarasi : X,Y, hsl Y,XY, hsl XY, YK,hsl YK, XK, hsl XK : integer Hasil_akhir : real Deskripsi : Read (X) Read (Y) Faktorial (Y, hsl Y) XY ← (X*Y) Faktorial (XY, hsl XY) YK ← SQR (Y) Faktorial (YK, hsl YK) XK ← SQR (X) Faktorial (XK, hsl XK) hasil_akhir ← (hsl XY/hsl Y) * hsl YK * hsl XK write (hasil_akhir)