Love What You Do, Do What You Love

Program Tripel Phytagoras menggunakan Delphi 7

Posted by : Unknown
Minggu, 30 Desember 2012

Pseudo Code:


var p,n,k,l,m : integer;
begin
  p:=StrToInt(edit1.text);
  k:=3;
  l:=4;
  m:=5;
  n:=0;

  while n < p do
  begin
    n:=n+1;
    k:=k*n;
    l:=l*n;
    m:=m*n;
    listbox1.items.add(IntToStr(k)+' , '+IntToStr(l)+' , '+IntToStr(m));
  end;
end;

Semoga Bermanfaat :)

0 comments:

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