segitiga
oleh :
arif zainurrohman
uses crt;
var
baris,kolom:integer;
begin
clrscr;
for baris:= 1 to 5 do
begin
for kolom:= 5 downto baris do
write(kolom);
writeln;
end;
readln;
end.
uses crt;
var
Bahasa:string[20];
urutan,posisi:integer;
begin
clrscr;
bahasa:='54321';
for urutan:= 1 to 5 do
begin
posisi := 7-urutan;
delete(Bahasa,posisi,1);
writeln(Bahasa);
end;
readln;
end.
Ibu Kota, 26 juni 2014
akhukumfillah arifzainurrohman
Label:
Komputer,
Kuliah,
Pascal,
Pemrograman
Bilangan Prima Delphi (Console Aplication)
oleh :
kelompok 12
program Project2;
{$APPTYPE CONSOLE}
uses
SysUtils;
var
a,b,c,x : integer;
BEGIN
write('Masukan Bilangan Prima sampai : '); readln(x);
for a:= 1 to x do
Begin;
c:=0;
for b:=1 to a do
Begin;
if a mod b=0 then
c:=c+1;
end;
if c=2 then
begin;
write(a,' ');
write('');
end;
end;
readln;
END.
Ibu Kota, 26 juni 2014
akhukumfillah arifzainurrohman
Label:
Delphi,
Kuliah,
Pemrograman
Langganan:
Postingan (Atom)



