Love What You Do, Do What You Love

Program Kelipatan Bilangan Bulat K antara a sampai b menggunakan Delphi 7

Posted by : Unknown
Minggu, 30 Desember 2012

Pseudo Code:


var a,b,k,i : integer;
begin
  a:=strtoint(edit1.Text);
  b:=strtoint(edit2.Text);
  k:=strtoint(edit3.Text);

  for i:=a to b do
  if i mod k = 0 then
  begin
     listbox1.Items.add(inttostr(i));
  end;
end;

Semoga Bermanfaat :)

0 comments:

Copyright © 2012 Zuka Zuka World | Hatsune Miku Theme | Designed by Johanes DJ