Related Posts with Thumbnails
Home » , » Lab.Algoritma.Program Membalik Nama

Lab.Algoritma.Program Membalik Nama

Written By ex genvil on Rabu, 01 Desember 2010 | 20.34

Program Balik Nama
uses crt;
var
nama,hasil,pos:string;
i:integer;
begin
clrscr;
hasil:= '';
write ('Nama        :');readln(nama);
for i := length (nama) downto 1 do
begin
pos:=copy (nama,i,1);
hasil:= hasil+pos;
end;
write('Dibalik menjadi     :',hasil);
readln;
end.
Share this article :

Tidak ada komentar:

Posting Komentar

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. kamar loteng - All Rights Reserved
Template Created by Creating Website
Proudly powered by Blogger