Это ? <span><span>PascalВыделить код</span><span>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<span>uses graphABC;
function F(x:real):real;
begin
F:=sin(x)/x
end;
var mx,my,x,dx,y:real;
x0,y0,i:integer;
s:string;
begin
x0:=windowwidth div 2;{Г*Г*Г·Г*ëî êîîðäèГ*Г*ГІ Гў öåГ*òðå ГЅГЄГ°Г*Г*Г*}
y0:=windowheight div 2;
{êîýôôèöèåГ*ГІГ» ГЇГ® îñÿì äëÿ ïåðåâîäГ* ðåГ*ëüГ*ûõ êîîðäèГ*Г*ГІ Гў ГЅГЄГ°Г*Г*Г*ûå}
mx:=30;
my:=100;
line(0,y0,windowwidth,y0); {îñü Õ}
line(x0,windowheight,x0,0); {îñü Ó}
{ïîäïèñè îñè Y}
line(x0-3,y0-round(my),x0+3,y0-round(my));
textout(x0-10,y0-round(my)-15,'1');
line(x0-3,y0+round(my),x0+3,y0+round(my));
textout(x0-15,y0+round(my),'-1');
{ïîäðèñè îñè Õ}
for i:=1 to 6 do {Г¬Г*ГЄГ±ГЁГ¬Г*ëüГ*îå êîëè÷åñòâî Г§Г*Г±ГҐГ·ГҐГЄ Гў îäГ*Гі ñòîðîГ*Гі}
begin
line(x0+round(i*pi*mx/2),y0-3,x0+round(i*pi*mx/2),y0+3); {Г§Г*Г±ГҐГ·ГЄГЁ Г*Г* îñè Г•}
line(x0-round(i*pi*mx/2),y0-3,x0-round(i*pi*mx/2),y0+3);
if i mod 2=0 then {ïîäïèñè ÷åðåç 1}
begin
str(i div 2,s);
if s='1' then s:='';{1pi 1 Г*ГҐ ГЇГЁГёГҐГ¬}
textout(x0+round(i*pi*mx/2),y0+10,s+'pi');
textout(x0-round(i*pi*mx/2),y0+10,'-'+s+'pi');
end;
end;
{öåГ*ГІГ°}
textout(x0+5,y0+10,'0');
{ïîäïèñè ГЄГ®Г*öîâ îñåé}
textout(windowwidth-10,y0-10,'X');
textout(x0-10,10, 'Y');
dx:=0.001;
{ГЈГ°Г*ГґГЁГЄ}
x:=-3*pi;
while x<=3*pi do
begin
setpixel(x0+round(x*mx),y0-round(F(x)*my),clBlue);{ГЈГ°Г*ГґГЁГЄ Г±ГЁГ*ГЁГ¬}
x:=x+dx; {Г*Г*Г°Г*Г№ГЁГўГ*ГҐГ¬ Гµ}
end;
end<span>.</span></span></span></span>
Program Task;
Var a: Array [1..40] of Integer;
b: Real;
c, d, e, i: Integer;
Begin
Randomize;
For i := 1 To 40 Do
a[i] := Random(20 + 1);
WriteLn('Массив:');
For i := 1 To 40 Do
Write(a[i], ' ');
WriteLn;
For i := 1 To 40 Do
Begin
If a[i] Mod 2 = 1 Then
Begin
b := b + a[i];
c := c + 1;
End;
If a[i] <= 10 Then
d := d + a[i];
If a[i] Mod 3 = 0 Then
e := e + a[i];
End;
WriteLn('Среднее арифметическое нечётных чисел: ', (b / c):2:2);
WriteLn('Сумма чисел, не превышающих 10: ', d);
WriteLn('Сумма чисел кратных 3: ', e);
ReadLn;
<span>End.</span>
1)-0,1,2,3,4,5,6,7,8,9.
2)69-105
(-123)-(-173)
(-169)-(-251)
78-116
3)(-19095)-(-4A97)
6994-1B52
(-88007)-(-157C7)
4)б) и в)
#include <cstdlib>#include <iostream>#include <iomanip>#include <cmath>
using namespace std;
int main(){ setlocale(0, ""); double x, y, a, b, xk, xn, dx; a = 1.4; b = 2.5; cout << "Ââåäèòå xn,xk, dx = " << endl; cin >> xn; cin >> xk; cin >> dx; x = xn; cout << "Tabl" << endl; cout << "+-----------+" << endl; cout << "¦ x ¦ y ¦" << endl; while (x <= xk) { y = (log10(a*x*x+b))/(a*x+1); cout << "+-----+-----¦" << endl; cout.setf(ios::fixed); cout.precision(3); cout << "¦" << x << "¦"<< y << "¦" << endl; x = x + dx; } cout << "+-----------+"; system("pause");}