Prosedur Rekursif Permutasi

  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Prosedur Rekursif Permutasi as PDF for free.

More details

  • Words: 56
  • Pages: 1
============================================================= const MAXN = 3; procedure permut(s:string); var ch : char; begin if (length(s) = MAXN) then writeln(s) else for ch := 'A' to 'C' do if (pos(ch,s) = 0) then permut(s+ch); end; begin permut(''); end. ============================================================= Di atas adalah prosedur untuk menampilkan permutasi dari 'A','B','C'. Jika dijalankan akan menampilkan: ABC ACB BAC BCA CAB CBA

Related Documents

Permutasi Factorial.docx
December 2019 3
Prosedur
November 2019 54
Prosedur Cci
May 2020 36