.


:




:

































 

 

 

 


өң




ғғ қ қ ә:

  • 1- ү ә 1 ө ғ ө ү .
  • ( ) - ө өң қ ң (ң ө қғ).
  • - әқ ң ұ өң қ ң ұ.
  • Қ әң қ ө.

: ң қ .

ғ :

var n,i,k: integer;begin writeln ('sandi endir:'); readln (n); k:=0; {=өң қ=} for i:=1 to Round (n/2) do if n mod i=0 then k:=k+1; if k=2 then writeln (n,' zhai san') else writeln (n,' zhai san emes');end.

:

:    
ә: 8 zhai san emes 11 zhai san

: [a, b] ғғ қ .

ғ :

var a,b,n,i,k: integer;begin writeln ('aralyqtin shekaralarin endir:'); readln (a,b); writeln ('zhai sandar:'); for n:=a to b do begin k:=0; {= өң қ =} for i:=1 to Round (Sqrt(n)) do if n mod i=0 then k:=k+1; if k=2 then write(n);end;end.

:

: 10, 100
ә: 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97

: ү ?

ғ :

var n,i,s: integer;begin writeln ('sandi endir:'); readln (n); s:=0; {==Bolgishter qosyndysyn tabu==} for i:=1 to (n div 2) do if n mod i=0 then s:=s+i; if s=n then writeln ('Kemel san'); else writeln ('Kemel san emes');end.

:

:  
ә: Kemel san

: [a, b] ғғ қ .

ғ :

var a,b,n,i,s: integer;begin writeln ('aralyqtin shekaralarin endir:'); readln (a,b); writeln ('Kemel sandar:'); for n:=a to b do begin s:=0; {==Bolgishter qosyndysyn tabu==} for i:=1 to (n div 2) do if n mod i=0 then s:=s+i; if s=n then write(n,' '); end;end.

:

: 0 100
ә: 6 28

: ү ө ?

ғ :

var n,m,i,s1,s2: integer;begin writeln ('Eki san endir:'); readln (n,m); s1:=0; s2:=0; {=n-di bolgishterdin qosyndysyn tabu=} for i:=1 to (n div 2) do if n mod i=0 then s1:=s1+i; {=m-di bolgishterdin qosyndysyn tabu =} for i:=1 to (m div 2) do if m mod i=0 then s2:=s2+i; if (s2=n) and (s1=m) then writeln ('Sandar ozara dostas') else writeln ('Sandar ozara dostas emes');end.

:

: 220 284
ә: Sandar ozara dostas

: ә қ

: қ қң ұғ k қ, k-ң қ ө t , ә ұғ t -ғ ң қ ә ө .

ғ :

var n,i,j,k,x,t,period: integer; a:string;begin writeln ('matindi endir:'); readln (a); n:=length(a); for i:=1 to n do begin k:=0; if n mod i=0 then begin t:=n div i; x:=1; for j:=1 to i-1 do begin if copy (a,1,t)=copy(a,x+t,t) then k:=k+1; x:=x+t; end; if k=i-1 then period:=t; end; end; writeln (copy (a, 1, period));end.

:

:
ә:

Қ (1.2-):

1.2-.
 
ә ң ң ө ә ә for i=1 to nx=n-i+1next for i:=1 to n dox:=n-i+1; for(i=1;i<=n;i++) x=n-i+1;
1. x \ y = x / y2. x mod y =0 x mod y = 0 x%y==0
ұғ sqr ((x1-x2)^2+(y1-y2)^2) sqrt (sqr(x1-x2)+sqr(y1-y2)) sqrt(pow(x1- x2,2)+pow(y1-y2,2))

ʳ ө ()

  • ( ) ң қң ө қ .
  • - ңғ ә ң ғ қ қ ә.
  • ң ққ ө. Pascal өң қғ mod қ қ қ ( % ).

ғ ғ

ққғ өң n-ұң өң , ң , ғ (0,0) ү ң қ .

қ ө ?

3. n- ү ң қ ң ң ә қғ . , n=9 1,2,3,4,5,6,7,8,9 ң қ ғұ ң : 1+9=10, 2+8=10, 3+7=10, 4+6=10. , 4*10+5=45.

қ. қ ә қ 2 ң 3 ң ғ қ. Ә, қ ү ү қң 2- 3- ү ңғ, қ, қ ң қ ққ ғ . Ққ ң ѳ қ 2- 3- ғ ө. ң .





:


: 2017-04-04; !; : 1058 |


:

:

: , , , , .
==> ...

1733 - | 1575 -


© 2015-2024 lektsii.org - -

: 0.012 .