. ?
, . . -, , , . , , . , , , . ...
. . . . ³ , . .
: , . , , , imp (implementation).
, , .
program logic2;
uses crt;
const a1 = ' . ';
a2 = ' - . ';
a3 = ' . ';
a4 = ' i i. ';
var
a,b,c,d,m: boolean;
imp a,b: a imp b = false , a=trueb=false, a imp b = true. : , , :
( ) = 1
, , ᒺ (( ) = 1).
, , answer, , . , 䳿 .
function imp(a,b:boolean):boolean;
begin
if (a=true) and (b=false) then imp:=false
else imp:= true;
end;
function answer: boolean;
begin
m:= b or c;
answer:= ((imp(a,m)) and (b or (not(a) and d)) and (imp(d,m)))
and (not (a) and (not (c)));
end;
begin
clrscr;
for a:= false to true do
for b:= false to true do
for c:= false to true do
for d:= false to true do
if answer = true then
begin
writeln(a,' ',b,' ',c,' ',d,' ',f);
if a = true then writeln(a1);
if b = true then writeln(a2);
if c = true then writeln(a3);
if d = true then writeln(a4);
end;
writeln;
readln;
end.
.
151. 151. .
152. 152. . .
153. 153. ABCD, . , .
|
|
154. 154. , .
155. 155. N , .
156. 156. , .
157. 157. , , ?
158. 158. N , , ?
159. 159. ( ) , .
160. 160. ( ) N, .
161. 161. , .
162. 162. ϳ SABC . [7] .
163. 163. ?
164. 164. ?
165. 165. M i N. , ?
166. 166. , . ³, , . , , , , , . , , , . ?
167. 167. , , :
, , , , . , , , :
, ;
, ;
, .
, .
168. 168. , . , :
1. , .
2. , .
?
( ), , , , , . , 1999 . , .
, 7- . 28 , , .
-8 | -7 | -5 | -4 | -4 | -5 | -4 | ... | -9 | -7 | -4 | -2 | -1 | ||
... |
. 1.
|
|
, , , .
. , . . ( ) , . .
:
var temp: array [1..28] of integer;
, 28 integer: temp1, temp2,..., temp28. , , 28 . , () ( ). , , :
write(temp[4]); 4 ;
write(temp[25]); 25 .
, , , . , () .
. :
program kalendar_priroda;
uses dos, crt;
var i: integer;
temp: array[1..28] of integer;
begin
clrscr;
for i:= 1 to 28 do
begin
write(i ,i,- : );
readln(temp[i]);
end;
for i:= 1 to 28 do write(i:4);writeln;
for i:= 1 to 28 do write(temp[i]:4); writeln;
readln
end.
, . : , , , .., , .