program qwerty;
uses crt;
procedure loving(i,j:integer);
begin
writeln;
for i:=i to 22 do
begin
for j:=1 to 60 do
begin
if i=1 then
begin
if((j>=14)and(j<=23))or((j>=39)and(j<=48))then
write('*')
else
write(' ');
end;
if i=2 then
begin
if((j>=11)and(j<=26))or((j>=36)and(j<=51))then
write('*')
else
write(' ');
end;
if i=3 then
begin
if ((j>=9)and(j<=28))or((j>=34)and(j<=53)) then
write('*')
else
write(' ');
end;
if i=4 then
begin
if ((j>=7)and(j<=30))or((j>=32)and(j<=55)) then
write('*')
else
write(' ');
end;
if((i=5)or(i=8)) then
begin
if((j>=6)and(j<=56))then
write('*')
else
write(' ');
end;
if((i>=6)and(i<=7))then
begin
if((j>=5)and(j<=57))then
write('*')
else
write(' ');
end;
if i=9 then
begin
if((j>=7)and(j<=55))then
write('*')
else
write(' ');
end;
if i=10 then
begin
if((j>=9)and(j<=53)) then
write('*')
else
write(' ');
end;
if i=11 then
begin
if((j>=11)and(j<=51))then
write('*')
else
write(' ');
end;
if i=12 then
begin
if((j>=13)and(j<=49)) then
write('*')
else
write(' ');
end;
if i=13 then
begin
if ((j>=15) and (j<=47)) then
write('*')
else
write(' ');
end;
if i=14 then
begin
if((j>=17)and(j<=45)) then
write('*')
else
write(' ');
end;
if i=15 then
begin
if((j>=19)and(j<=43)) then
write('*')
else
write(' ');
end;
if i=16 then
begin
if((j>=21) and (j<=41)) then
write('*')
else
write(' ');
end;
if i=17 then
begin
if((j>=23) and (j<=39)) then
write('*')
else
write(' ');
end;
if i=18 then
begin
if((j>=25) and (j<=37)) then
write('*')
else
write(' ');
end;
if i=19 then
begin
if((j>=27) and (j<=35)) then
write('*')
else
write(' ');
end;
if i=20 then
begin
if((j>29) and (j<=33)) then
write('*')
else
write(' ');
end;
if i=21 then
begin
if((j>=30) and (j<=32)) then
write('*')
else
write(' ');
end;
if i=22 then
begin
if j=31 then
write('*')
else
write(' ');
end;
end;
writeln;
end;
writeln;
end;
var a,b:integer;
begin
clrscr;
writeln;
loving(a,b);
gotoxy(24,25);
writeln(' I LOVE SMKN1 ');
gotoxy(24,25);
writeln(' I LOVE ....? ');
gotoxy(15,25);
writeln('|****** BY : David John Herik ******|');
readln;
end.
Output :
uses crt;
procedure loving(i,j:integer);
begin
writeln;
for i:=i to 22 do
begin
for j:=1 to 60 do
begin
if i=1 then
begin
if((j>=14)and(j<=23))or((j>=39)and(j<=48))then
write('*')
else
write(' ');
end;
if i=2 then
begin
if((j>=11)and(j<=26))or((j>=36)and(j<=51))then
write('*')
else
write(' ');
end;
if i=3 then
begin
if ((j>=9)and(j<=28))or((j>=34)and(j<=53)) then
write('*')
else
write(' ');
end;
if i=4 then
begin
if ((j>=7)and(j<=30))or((j>=32)and(j<=55)) then
write('*')
else
write(' ');
end;
if((i=5)or(i=8)) then
begin
if((j>=6)and(j<=56))then
write('*')
else
write(' ');
end;
if((i>=6)and(i<=7))then
begin
if((j>=5)and(j<=57))then
write('*')
else
write(' ');
end;
if i=9 then
begin
if((j>=7)and(j<=55))then
write('*')
else
write(' ');
end;
if i=10 then
begin
if((j>=9)and(j<=53)) then
write('*')
else
write(' ');
end;
if i=11 then
begin
if((j>=11)and(j<=51))then
write('*')
else
write(' ');
end;
if i=12 then
begin
if((j>=13)and(j<=49)) then
write('*')
else
write(' ');
end;
if i=13 then
begin
if ((j>=15) and (j<=47)) then
write('*')
else
write(' ');
end;
if i=14 then
begin
if((j>=17)and(j<=45)) then
write('*')
else
write(' ');
end;
if i=15 then
begin
if((j>=19)and(j<=43)) then
write('*')
else
write(' ');
end;
if i=16 then
begin
if((j>=21) and (j<=41)) then
write('*')
else
write(' ');
end;
if i=17 then
begin
if((j>=23) and (j<=39)) then
write('*')
else
write(' ');
end;
if i=18 then
begin
if((j>=25) and (j<=37)) then
write('*')
else
write(' ');
end;
if i=19 then
begin
if((j>=27) and (j<=35)) then
write('*')
else
write(' ');
end;
if i=20 then
begin
if((j>29) and (j<=33)) then
write('*')
else
write(' ');
end;
if i=21 then
begin
if((j>=30) and (j<=32)) then
write('*')
else
write(' ');
end;
if i=22 then
begin
if j=31 then
write('*')
else
write(' ');
end;
end;
writeln;
end;
writeln;
end;
var a,b:integer;
begin
clrscr;
writeln;
loving(a,b);
gotoxy(24,25);
writeln(' I LOVE SMKN1 ');
gotoxy(24,25);
writeln(' I LOVE ....? ');
gotoxy(15,25);
writeln('|****** BY : David John Herik ******|');
readln;
end.
Output :










