.


:




:

































 

 

 

 


2. :




1. : . -

- , , first second. . :

read.

check, read .

( display).

. : , - .

1. first ; second , . power() first second ( pow math.h). first second.

2. first ; second , . power() first second. first second.

3. first , ; second . ipart() first/second. .

4. first , ; 1, 2, 5, 10, 50, 100, 500, 1000, 5000. second , . summa() .

5. first , ; second , . cost() .

6. first , 100 . ; second , . power() .

7. first , ; second , . rangecheck() .

8. first , , ; second , , . [first, second). rangecheck() .

9. first , ; second , . minutes() .

10. ˳ y=Ax+B. first , A; second , B. function() x y.

11. ˳ Ax+B=0. first , A; second , B. root() . A .

12. first , x ; second , y . distance() .

13. first , ; second , b . hypotenuse() .

14. first , ; second , . summa() :

/ * .

15. first , ; second , . cost() .

16. first , ; second , . multiply() double. - first second.

17. first , ; second , . changex() ; changey() . .

18. first , ; second , . multiply() int. first second.

19. ʳ nk ᒺ (k<n)

C(n,k)= n! / ((n-k)!* k!)

first , k; second , n. combination() C(n,k).

20. aj

aj = a0rj, j = 0, 1, 2,..

first , a0; second , r. element() .

21. first , , second 1 12 . DaysCount() (, ).

22. first second , . GetX() GetY(), .

23. first second , . Check(), .

2. :

, , ( ).

1. , : . . . "<<" , .

2. , . :

++ 10 ,

-- 10 ,

< .

3. C , . :

! , 90 ,

- , ,

++ .

4. , , int, double, , . .

5. , , ,

0, ,

1, / ,

-1, / .

.

6. , . .

7. , , int, double, , ( char*). .

8. ++ . .

9. <<, >> nxm.

10. S3=S1-S2. S3 , S1 S2. .

11. +, -, *, / . z=(x+y)/(x-y)+xy/(x+y). .

12. +, -, * (nxn). D=A*B+C*A-A*C. .

13. +, -, * n. d=(a+b)(a-b). .

14. S3=S1+S2. S3 , S1 S2. .

15. S3=S1*S2. S3 , S1 S2 . .

16. (x,y,r) .

+, -, * :

"+" ᒺ,

"*" ,

"-" .

.

17. (x1,y1,x2,y2) .

(x1,y1)

(x2,y2)

+, -, * :

"+" ᒺ,

"*" ,

"-" .

.

18. (n) a0 +a1 x +a2 x2 ++ an-1 xn-1.

+, -, * . . .

19. (n) a0 +a1 x +a2 x2 ++ an-1 xn-1. ++ . . .

20. << >> , == .

21. << >> . .

22. * , , .

23. :

" " ( ). .

"*" ( k s).

>0, k S. k<0, k S.

24. :

a & b ,

! a .

a & a, a & b,! a.

25. << >> n .

26. +, -, *,/ P/Q, PZ, QN. . a/d-(a+b)/(cd), a,b,c,d .

27. , . <<, >> :

">>" ,

"<<" (, , ).

28. A(n) a0 +a1 x +a2 x2 ++ an-1 xn-1. ! .

29. , n :

"+" ᒺ ,

"*" ,

">>" .

30. , n :

"-" ,

"!" ,

"<<" .

31. , , , ( ). .

32. , , , . .

33. * n x n n ( ).

34. A(n) = a0 +a1 x +a2 x2 ++ an-1 xn-1 B(m) = b0 +b1 x +b2 x2 ++ bm-1 xm-1. / . P(r) Q(l) , A(n) = P(r)*B(m) + Q(l).





:


: 2016-07-29; !; : 1237 |


:

:

.
==> ...

1883 - | 1755 -


© 2015-2024 lektsii.org - -

: 0.027 .