SlideShare a Scribd company logo
1 of 5
3. Buatlah algoritma dan program untuk menghitung
determinan matriks berordo 2*2 .
Analisis:
Input
Proses
Output

: i,j,k,l
: Hasil<– i * l – j * k
: tulis (Hasil)
ALGORITMA ALJABAR

DEKLARASI
i,j,k,l : integer (inputan)
Hasil : integer (output)

DESKRIPSI
Read
(i,j,k,l)
Hasil<– i * l – j * k
#include <iostream>
#include <string>
using namespace std;
int main()
{
int hasil,i,l,j,k;
cout <<"Masukkan i ="<< endl;
cin >> i;
cout <<"Masukkan bilangan j"<< endl;
cin >> j;
cout << "Masukan bilangan k="<< endl;
cin >> k;
cout <<"Masukan bilangan l="<< endl;
cin >> l;
hasil =i*l-j*k;
cout << hasil << endl;
system("PAUSE");
return EXIT_SUCCESS;
}
Tgs ppt alpro no.3

More Related Content

What's hot (18)

Corridas de los programas
Corridas de los programasCorridas de los programas
Corridas de los programas
 
Bodlogo
BodlogoBodlogo
Bodlogo
 
Linklist through struct
Linklist through structLinklist through struct
Linklist through struct
 
Kelompok 2.6
Kelompok 2.6Kelompok 2.6
Kelompok 2.6
 
Corridas
CorridasCorridas
Corridas
 
Suma factoriales impares
Suma factoriales imparesSuma factoriales impares
Suma factoriales impares
 
All set1
All set1All set1
All set1
 
Infix prefix postfix expression -conversion
Infix  prefix postfix expression -conversionInfix  prefix postfix expression -conversion
Infix prefix postfix expression -conversion
 
latihan SAP
latihan SAPlatihan SAP
latihan SAP
 
Kelompok 2.6
Kelompok 2.6Kelompok 2.6
Kelompok 2.6
 
Correcion
CorrecionCorrecion
Correcion
 
Teknik simulasi
Teknik simulasiTeknik simulasi
Teknik simulasi
 
Los fantastico
Los fantasticoLos fantastico
Los fantastico
 
Dsa 1
Dsa 1Dsa 1
Dsa 1
 
07 3 do-while반복문
07 3 do-while반복문07 3 do-while반복문
07 3 do-while반복문
 
Hipo
HipoHipo
Hipo
 
Trabajo
TrabajoTrabajo
Trabajo
 
Looping
LoopingLooping
Looping
 

Viewers also liked

Tugas alpro pertemuan 1 no.2
Tugas alpro pertemuan 1 no.2Tugas alpro pertemuan 1 no.2
Tugas alpro pertemuan 1 no.21300018047
 
Tugas alpro 3.4
Tugas alpro 3.4Tugas alpro 3.4
Tugas alpro 3.41300018047
 
Tugas alpro pertemuan 1 no.2
Tugas alpro pertemuan 1 no.2Tugas alpro pertemuan 1 no.2
Tugas alpro pertemuan 1 no.21300018047
 
Tgs ppt alpro no 2
Tgs ppt alpro no 2Tgs ppt alpro no 2
Tgs ppt alpro no 21300018047
 
Tugas alpro 3.3
Tugas alpro 3.3Tugas alpro 3.3
Tugas alpro 3.31300018047
 
Entomological field techniques for mosquito and sand fly collection: a field ...
Entomological field techniques for mosquito and sand fly collection: a field ...Entomological field techniques for mosquito and sand fly collection: a field ...
Entomological field techniques for mosquito and sand fly collection: a field ...prakashtu
 
Entomological field techniques for mosquito and sandfly
Entomological field techniques for mosquito and sandflyEntomological field techniques for mosquito and sandfly
Entomological field techniques for mosquito and sandflyprakashtu
 
Mantoux test
Mantoux test Mantoux test
Mantoux test prakashtu
 
HIV epidemiology and pathogenesis
HIV epidemiology and pathogenesis HIV epidemiology and pathogenesis
HIV epidemiology and pathogenesis prakashtu
 
Bacteriological analysis of drinking water by MPN method.
Bacteriological analysis of drinking water by MPN method.Bacteriological analysis of drinking water by MPN method.
Bacteriological analysis of drinking water by MPN method.prakashtu
 

Viewers also liked (17)

Tugas alpro pertemuan 1 no.2
Tugas alpro pertemuan 1 no.2Tugas alpro pertemuan 1 no.2
Tugas alpro pertemuan 1 no.2
 
Tugas alpro 3.4
Tugas alpro 3.4Tugas alpro 3.4
Tugas alpro 3.4
 
Tugas alpro pertemuan 1 no.2
Tugas alpro pertemuan 1 no.2Tugas alpro pertemuan 1 no.2
Tugas alpro pertemuan 1 no.2
 
Tgs ppt alpro no 2
Tgs ppt alpro no 2Tgs ppt alpro no 2
Tgs ppt alpro no 2
 
3.4 pp
3.4 pp3.4 pp
3.4 pp
 
3.5 pp
3.5 pp3.5 pp
3.5 pp
 
3.6 pp
3.6 pp3.6 pp
3.6 pp
 
Kontrollansvarig Specialisterna klätterbok
Kontrollansvarig Specialisterna klätterbokKontrollansvarig Specialisterna klätterbok
Kontrollansvarig Specialisterna klätterbok
 
Tugas alpro 3.3
Tugas alpro 3.3Tugas alpro 3.3
Tugas alpro 3.3
 
Entomological field techniques for mosquito and sand fly collection: a field ...
Entomological field techniques for mosquito and sand fly collection: a field ...Entomological field techniques for mosquito and sand fly collection: a field ...
Entomological field techniques for mosquito and sand fly collection: a field ...
 
Entomological field techniques for mosquito and sandfly
Entomological field techniques for mosquito and sandflyEntomological field techniques for mosquito and sandfly
Entomological field techniques for mosquito and sandfly
 
Mantoux test
Mantoux test Mantoux test
Mantoux test
 
HIV epidemiology and pathogenesis
HIV epidemiology and pathogenesis HIV epidemiology and pathogenesis
HIV epidemiology and pathogenesis
 
Filariasis
FilariasisFilariasis
Filariasis
 
Penicillin
PenicillinPenicillin
Penicillin
 
Salmonella
SalmonellaSalmonella
Salmonella
 
Bacteriological analysis of drinking water by MPN method.
Bacteriological analysis of drinking water by MPN method.Bacteriological analysis of drinking water by MPN method.
Bacteriological analysis of drinking water by MPN method.
 

More from 1300018047

Alpro soal kelompok (9 soal) 2
Alpro soal kelompok (9 soal) 2Alpro soal kelompok (9 soal) 2
Alpro soal kelompok (9 soal) 21300018047
 
Tugas alpro 3.5
Tugas alpro 3.5Tugas alpro 3.5
Tugas alpro 3.51300018047
 
Tugas alpro 3.2 alternatif 2
Tugas alpro 3.2 alternatif 2Tugas alpro 3.2 alternatif 2
Tugas alpro 3.2 alternatif 21300018047
 
Tugas alpro 3.2 alternatif 1
Tugas alpro 3.2 alternatif 1Tugas alpro 3.2 alternatif 1
Tugas alpro 3.2 alternatif 11300018047
 
Tugas alpro 3.1
Tugas alpro 3.1Tugas alpro 3.1
Tugas alpro 3.11300018047
 
Tugas alpro 3.1
Tugas alpro 3.1Tugas alpro 3.1
Tugas alpro 3.11300018047
 
Ppt ganjil genap2
Ppt ganjil genap2Ppt ganjil genap2
Ppt ganjil genap21300018047
 
Ppt ganjil genap2
Ppt ganjil genap2Ppt ganjil genap2
Ppt ganjil genap21300018047
 
Ppt ganjil genap2
Ppt ganjil genap2Ppt ganjil genap2
Ppt ganjil genap21300018047
 
Ppt ganjil genap
Ppt ganjil genapPpt ganjil genap
Ppt ganjil genap1300018047
 

More from 1300018047 (12)

Alpro soal kelompok (9 soal) 2
Alpro soal kelompok (9 soal) 2Alpro soal kelompok (9 soal) 2
Alpro soal kelompok (9 soal) 2
 
2.7 a
2.7 a2.7 a
2.7 a
 
2.5 b
2.5 b2.5 b
2.5 b
 
Tugas alpro 3.5
Tugas alpro 3.5Tugas alpro 3.5
Tugas alpro 3.5
 
Tugas alpro 3.2 alternatif 2
Tugas alpro 3.2 alternatif 2Tugas alpro 3.2 alternatif 2
Tugas alpro 3.2 alternatif 2
 
Tugas alpro 3.2 alternatif 1
Tugas alpro 3.2 alternatif 1Tugas alpro 3.2 alternatif 1
Tugas alpro 3.2 alternatif 1
 
Tugas alpro 3.1
Tugas alpro 3.1Tugas alpro 3.1
Tugas alpro 3.1
 
Tugas alpro 3.1
Tugas alpro 3.1Tugas alpro 3.1
Tugas alpro 3.1
 
Ppt ganjil genap2
Ppt ganjil genap2Ppt ganjil genap2
Ppt ganjil genap2
 
Ppt ganjil genap2
Ppt ganjil genap2Ppt ganjil genap2
Ppt ganjil genap2
 
Ppt ganjil genap2
Ppt ganjil genap2Ppt ganjil genap2
Ppt ganjil genap2
 
Ppt ganjil genap
Ppt ganjil genapPpt ganjil genap
Ppt ganjil genap
 

Recently uploaded

French Revolution (फ्रेंच राज्यक्रांती)
French Revolution  (फ्रेंच राज्यक्रांती)French Revolution  (फ्रेंच राज्यक्रांती)
French Revolution (फ्रेंच राज्यक्रांती)Shankar Aware
 
، ژیانا ئینگلیزا ب کوردی ، ئینگلیزەکان ، راپورتی کوردی ، راپورتا مێژوی ، ژ...
، ژیانا ئینگلیزا ب کوردی ، ئینگلیزەکان ، راپورتی کوردی ،    راپورتا مێژوی ، ژ...، ژیانا ئینگلیزا ب کوردی ، ئینگلیزەکان ، راپورتی کوردی ،    راپورتا مێژوی ، ژ...
، ژیانا ئینگلیزا ب کوردی ، ئینگلیزەکان ، راپورتی کوردی ، راپورتا مێژوی ، ژ...Idrees.Hishyar
 
أَسَانِيدُ كُتُبِ وَأُصُولِ النَّشْرِ لِابْنِ الْجَزَرِيِّ وَالْوَصْلُ بِهَا....
أَسَانِيدُ كُتُبِ وَأُصُولِ النَّشْرِ لِابْنِ الْجَزَرِيِّ وَالْوَصْلُ بِهَا....أَسَانِيدُ كُتُبِ وَأُصُولِ النَّشْرِ لِابْنِ الْجَزَرِيِّ وَالْوَصْلُ بِهَا....
أَسَانِيدُ كُتُبِ وَأُصُولِ النَّشْرِ لِابْنِ الْجَزَرِيِّ وَالْوَصْلُ بِهَا....سمير بسيوني
 
TUYỂN TẬP 20 ĐỀ THI KHẢO SÁT HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2020 (CÓ Đ...
TUYỂN TẬP 20 ĐỀ THI KHẢO SÁT HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2020 (CÓ Đ...TUYỂN TẬP 20 ĐỀ THI KHẢO SÁT HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2020 (CÓ Đ...
TUYỂN TẬP 20 ĐỀ THI KHẢO SÁT HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2020 (CÓ Đ...Nguyen Thanh Tu Collection
 
30 ĐỀ PHÁT TRIỂN THEO CẤU TRÚC ĐỀ MINH HỌA BGD NGÀY 22-3-2024 KỲ THI TỐT NGHI...
30 ĐỀ PHÁT TRIỂN THEO CẤU TRÚC ĐỀ MINH HỌA BGD NGÀY 22-3-2024 KỲ THI TỐT NGHI...30 ĐỀ PHÁT TRIỂN THEO CẤU TRÚC ĐỀ MINH HỌA BGD NGÀY 22-3-2024 KỲ THI TỐT NGHI...
30 ĐỀ PHÁT TRIỂN THEO CẤU TRÚC ĐỀ MINH HỌA BGD NGÀY 22-3-2024 KỲ THI TỐT NGHI...Nguyen Thanh Tu Collection
 
TUYỂN TẬP 25 ĐỀ THI HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2023 CÓ ĐÁP ÁN (SƯU...
TUYỂN TẬP 25 ĐỀ THI HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2023 CÓ ĐÁP ÁN (SƯU...TUYỂN TẬP 25 ĐỀ THI HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2023 CÓ ĐÁP ÁN (SƯU...
TUYỂN TẬP 25 ĐỀ THI HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2023 CÓ ĐÁP ÁN (SƯU...Nguyen Thanh Tu Collection
 

Recently uploaded (6)

French Revolution (फ्रेंच राज्यक्रांती)
French Revolution  (फ्रेंच राज्यक्रांती)French Revolution  (फ्रेंच राज्यक्रांती)
French Revolution (फ्रेंच राज्यक्रांती)
 
، ژیانا ئینگلیزا ب کوردی ، ئینگلیزەکان ، راپورتی کوردی ، راپورتا مێژوی ، ژ...
، ژیانا ئینگلیزا ب کوردی ، ئینگلیزەکان ، راپورتی کوردی ،    راپورتا مێژوی ، ژ...، ژیانا ئینگلیزا ب کوردی ، ئینگلیزەکان ، راپورتی کوردی ،    راپورتا مێژوی ، ژ...
، ژیانا ئینگلیزا ب کوردی ، ئینگلیزەکان ، راپورتی کوردی ، راپورتا مێژوی ، ژ...
 
أَسَانِيدُ كُتُبِ وَأُصُولِ النَّشْرِ لِابْنِ الْجَزَرِيِّ وَالْوَصْلُ بِهَا....
أَسَانِيدُ كُتُبِ وَأُصُولِ النَّشْرِ لِابْنِ الْجَزَرِيِّ وَالْوَصْلُ بِهَا....أَسَانِيدُ كُتُبِ وَأُصُولِ النَّشْرِ لِابْنِ الْجَزَرِيِّ وَالْوَصْلُ بِهَا....
أَسَانِيدُ كُتُبِ وَأُصُولِ النَّشْرِ لِابْنِ الْجَزَرِيِّ وَالْوَصْلُ بِهَا....
 
TUYỂN TẬP 20 ĐỀ THI KHẢO SÁT HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2020 (CÓ Đ...
TUYỂN TẬP 20 ĐỀ THI KHẢO SÁT HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2020 (CÓ Đ...TUYỂN TẬP 20 ĐỀ THI KHẢO SÁT HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2020 (CÓ Đ...
TUYỂN TẬP 20 ĐỀ THI KHẢO SÁT HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2020 (CÓ Đ...
 
30 ĐỀ PHÁT TRIỂN THEO CẤU TRÚC ĐỀ MINH HỌA BGD NGÀY 22-3-2024 KỲ THI TỐT NGHI...
30 ĐỀ PHÁT TRIỂN THEO CẤU TRÚC ĐỀ MINH HỌA BGD NGÀY 22-3-2024 KỲ THI TỐT NGHI...30 ĐỀ PHÁT TRIỂN THEO CẤU TRÚC ĐỀ MINH HỌA BGD NGÀY 22-3-2024 KỲ THI TỐT NGHI...
30 ĐỀ PHÁT TRIỂN THEO CẤU TRÚC ĐỀ MINH HỌA BGD NGÀY 22-3-2024 KỲ THI TỐT NGHI...
 
TUYỂN TẬP 25 ĐỀ THI HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2023 CÓ ĐÁP ÁN (SƯU...
TUYỂN TẬP 25 ĐỀ THI HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2023 CÓ ĐÁP ÁN (SƯU...TUYỂN TẬP 25 ĐỀ THI HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2023 CÓ ĐÁP ÁN (SƯU...
TUYỂN TẬP 25 ĐỀ THI HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2023 CÓ ĐÁP ÁN (SƯU...
 

Tgs ppt alpro no.3

  • 1. 3. Buatlah algoritma dan program untuk menghitung determinan matriks berordo 2*2 . Analisis: Input Proses Output : i,j,k,l : Hasil<– i * l – j * k : tulis (Hasil)
  • 2. ALGORITMA ALJABAR DEKLARASI i,j,k,l : integer (inputan) Hasil : integer (output) DESKRIPSI Read (i,j,k,l) Hasil<– i * l – j * k
  • 3.
  • 4. #include <iostream> #include <string> using namespace std; int main() { int hasil,i,l,j,k; cout <<"Masukkan i ="<< endl; cin >> i; cout <<"Masukkan bilangan j"<< endl; cin >> j; cout << "Masukan bilangan k="<< endl; cin >> k; cout <<"Masukan bilangan l="<< endl; cin >> l; hasil =i*l-j*k; cout << hasil << endl; system("PAUSE"); return EXIT_SUCCESS; }