1. :
) ;
) ;
1
) 34, 56,78, 34, 67, 32, 98
) 001001110, 001100, 00110, 11101010, 1110111
2
) 24, 29, 80, 30, 61, 63,100
) 11001010101, 000011001, 1111110, 110110, 0011111
3
) 21, 65, 32, 29, 41, 21, 13
) 001010, 00010101010, 0010, 1110101, 1010001
4
) 15, 46, 45, 19, 48, 46, 20
) 00010101, 110101110, 11100001, 101011, 1110
5
) 11, 13, 26, 35, 42, 51, 64
) 0001011001, 010111, 0101110, 1010111,1110010
6
) 17, 6, 43, 61, 83, 97, 102
) 010101101, 11011011, 110101111111, 1101, 110110
7
) 11, 21, 31, 41, 51, 61, 71
) 111101, 110110111, 111101101, 101110, 11010
8
) 58, 46, 16, 27, 98, 9, 81
) 0001, 110011001, 0001110, 111000001, 111110
9
) 45, 25, 75, 46, 19, 89, 72
) 110111, 111010, 11010111, 110111, 110110110
10
) 74, 36, 25, 41, 20, 30, 50
) 11010110, 110111; 111011011; 1101; 001
2. .
1
0011+010; 00101-00100; 1101*001;100/10
2
00111-110; 1010+11111; 1010101*101; 1101/11
3
1101+110010; 111-010; 1101*10; 1111/111
4
1101-1001; 0010101+1010; 00111*11; 1101/10
5
10010+10101; 111-01; 010*01; 11101/111
6
1101+1101; 11011-1101; 1101/11; 1011*100
7
11010+11010; 1101101-1101; 111110*110; 1110/11
8
110+1101; 110011-110; 1110*11; 110/10
9
11100+1101; 1010+101010; 11011-1101; 11110/11
10
110111+1101101; 0011-00111; 00111*11; 1111/10
3. , \ \\. \. , 120 , 120. , ( Dec). Bin 1111000. . .
1. ?
2. ?
3. ?
4. ?
5. ? ?
6. ?
7. Backspace, , ?
|
|
1) ;
2) ;
3) .
4. . . .
, , , . - . Turbo Pascal.
- , , .
. - , , .
:
1. - ;
2. ;
3. ;
4. , ;
5. , , .. , .
. ( ) , , . , -. - , , , .( 3)
3
- ; ;
- ; , 1 2 , , , . "+" "-", "" "", "1" "0".
- . , ;
- . , .
- , "" "" ;
, , 2 ( ) 1 , .
. 4 -, .
4 - -
- , , , , - .
|
|
() , . . , , :
- ;
- ;
... ... - ;
- ;
- ;
... .. ... ... - ( - , - );
... ... - ;
... ... - .
C ( , ) - , . , () .
- . (). 2 .
, . Windows ( ), , , , .
. , . , .
Turbo Pascal
, . , , . , 63 , - 5-10 ( 1).
1 -
, | |||
boolean | : | true false | |
char | : ASCII- | 0 255 (28=256) | |
integer | 215 | ||
word | 216 - , 16- | ||
longint | : | 231 | |
real | 11-12 | ~ 2.9*10-39 - 1.7*1038 | |
double | 15-16 | ~ 5*10-324 1.7*10308 | |
string | char 1 255 | 2-256 ( + 1 ) | , |
() , , . . 6 , , , ( 2).
2-
* | ||
/ | ||
div | 2 | |
mod | 2 | |
+ | ||
- |
|
|
div mod . :
Var y, c, n: integer;
y:=2009;
c:=y div 100;
n:= y mod 100;
20, n 9.
, . , , , , . turbo.tpl. : , . , .
3
| x | | abs(x) | x | Integer (I) Real (R) |
x 2 | sqr(x) | x | I R, r |
sin x cos x arctg x | sin(x) cos(x) arctan(x) | I R, R | |
ex ln x | exp(x) ln(x) | I R, R | |
sqrt(x) | x | I R, R | |
p | pi | , p | R |
trunc(x) | , | R, I | |
frac(x) | R | ||
round(x) | R, I |
. :
:= ;
: =
: , :=, , . ,
k:=k+2
k 2.
.
:
read(_);
readln(_).
readln read , , Enter .
:
var a,b,c:real;
...
read (a,b,c);
a=1, b=4, c=2.5 :
1_4_2.5
"_" , "" - Enter.
, , . :
write();
writeln();
.
.
4 -
() | program ; |
, , , | const ; var ; |
, | begin ; end. |
|
|
, .
program Equation;
var a,b,c,d,x1,x2:real; begin
writeln;
writeln (' a,b,c:');
read (a,b,c);
d:=sqr(b)-4*a*c;
x1:=(-b+sqrt(d))/(2*a);
x2:=(-b-sqrt(d))/(2*a);
writeln (' ');
writeln (x1:10:2,x2:10:2);
readln; readln;
end.
1. . - .
2. .
3. Turbo Pascal.
4. .
1.
, (1;1),(2;2);(3;3) .
2.
.