menghitung panjang karakter

program balik_kata;
uses wincrt;
var kata :string;

procedure balik (s:string);
var i :integer;
begin
  for i:= length(s) downto 1 do write(s[i]);
  end;

  begin
  kata:=’algoritma’;
  balik(kata);
  end.

One thought on “menghitung panjang karakter

  1. wah… wah.. makasi y boss.. walaupun pake pascal tp yg pnting algoritmany… makasih dah bantu gw kerjain tugas algo.. he3x.. bikin tutorial java or php donk… thx.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s