You are on page 1of 30

,


- 4

, -

www.emust.edu.mn

U.CS101-

: , ,
, ,
,

, -
www.emust.edu.mn

:
01

02

03

04

05

01
02

, -
www.emust.edu.mn



.
,

.
, "
"

:=

:=

.
":=" .
, -
www.emust.edu.mn



.
.
.
.

.
""

.
.

, -
www.emust.edu.mn

1.

(+), (-), (), (/),


(\) .
(/)
,
"
" .
, 1/2 = 0 1.0/2 = 1/2.0 = 1.0/2.0 = 0.5 .
\
, "


" \ .
5\2=1,

5\-2=1,

-5\2=-1,

-5\-2=-1

(\) ,
i, j i\j=i-(i/j) j .
, ", (-1)' .
, -
www.emust.edu.mn

2.
"" ""

. "" "1"-
"" "0"- .
not, or, and, xor

.

.
:
x = (not x) or y
x y = (x and y) or
(not x and not y)
.
, -
www.emust.edu.mn

3.


<|=|>|||

.
: (-1<) and (<1) ]-1;1[
1 "", "" ,
(<1) (1 <) ]-;-1][1;+[ 1,
"" .
, -
www.emust.edu.mn

, ,
(string) .
, ,
.
1, 100, 3.1415

. (")
. :
' ', ' ', ''
. ,
.
(+) s1+s2 ( s1, s2
) . :
'' + ' ' '
' .
, -
www.emust.edu.mn



.
.
.
.

.
""

.
.

, -
www.emust.edu.mn



. , ,
.
.

.
.



. -
.
, -
www.emust.edu.mn

2: r1, r2, r3,(ri>0, i)


ri ,
.

L, S, V


. L, S, V




.

.
, -
www.emust.edu.mn



,
.


.


,

.
, -

, .
,
(
) .
" ,
"

(_) .
: \ ; 4\ _1\ __\ _
.
, -

,

:
1.
.

. , 2+b + = 0
, b

,
b .

, -

2. b2 - 4

. b2-4
(4ac
), b2-4ac .
3. b2 -4 ", b,
"

.
b2 - 4 b2 - 4
. jishee
, -

,
,

.
, 0 ; I , 1
.


,


.
, -


,
.
.
, .

.

. .

.
, -


.
.
, ,
32 . 32
32
.
.

.
.
,
.
, -



.
.
.
.


. .
.


.
const .
, -



.
.
.
.
. , , ,
.

char, long, int, short

, -

,
,
,
, .
.
.

.
, .

.
, -

.

,
.
. I+5 I
I
5- .
,
. I+5 I
.
, -

,
.
.

.
.

.
,
.

.
.
, -


.
.
a. , , , ,

b. (>=, <=, =, <>, ><)

c. (OR), (AND), (NOT)


d. x, sin(x), cos(x), tg(x), ln(x), ex, arctg(x),

, ,

.
, -

1.
2.

3.

4.

:
. : ax2+bx+c=0
a,b,c .
:
,

. =
:

:

.
, -



.



.

.
.

, -



.

. .
,
.
1- 4,5- , 2- 2,3,5,6-
.

. : - 10, - 5 - -
5 .
, -



.

. ,

.
. 2-
4 7- .

,

.
, -

.
1. i,j,k,l,m,n

.
.
.
2.
.

.
, -

You might also like

  • Lec1-1 Corporate Activity Shine
    Lec1-1 Corporate Activity Shine
    Document61 pages
    Lec1-1 Corporate Activity Shine
    Amarsaikhan Tuvshinbayar
    0% (1)
  • Lecture 15
    Lecture 15
    Document40 pages
    Lecture 15
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Lecture 9
    Lecture 9
    Document46 pages
    Lecture 9
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Lecture 6 2018
    Lecture 6 2018
    Document50 pages
    Lecture 6 2018
    Amarsaikhan Tuvshinbayar
    100% (3)
  • Lecture 12
    Lecture 12
    Document34 pages
    Lecture 12
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Lecture 4 2018
    Lecture 4 2018
    Document47 pages
    Lecture 4 2018
    Amarsaikhan Tuvshinbayar
    100% (4)
  • Lecture - 10
    Lecture - 10
    Document35 pages
    Lecture - 10
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Programming Lec 6
    Programming Lec 6
    Document51 pages
    Programming Lec 6
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Lecture 13
    Lecture 13
    Document46 pages
    Lecture 13
    Amarsaikhan Tuvshinbayar
    100% (2)
  • Lecture 11
    Lecture 11
    Document24 pages
    Lecture 11
    Amarsaikhan Tuvshinbayar
    100% (2)
  • Lecture 7 20108
    Lecture 7 20108
    Document47 pages
    Lecture 7 20108
    Amarsaikhan Tuvshinbayar
    75% (4)
  • Lecture 8 2018
    Lecture 8 2018
    Document54 pages
    Lecture 8 2018
    Amarsaikhan Tuvshinbayar
    100% (3)
  • Lecture 3 2018
    Lecture 3 2018
    Document42 pages
    Lecture 3 2018
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Lecture 5 2018
    Lecture 5 2018
    Document54 pages
    Lecture 5 2018
    Amarsaikhan Tuvshinbayar
    100% (2)
  • Baikal Hotolbor
    Baikal Hotolbor
    Document2 pages
    Baikal Hotolbor
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Lecture 1 2018
    Lecture 1 2018
    Document39 pages
    Lecture 1 2018
    Amarsaikhan Tuvshinbayar
    100% (6)
  • IT101 Lecture 4
    IT101 Lecture 4
    Document72 pages
    IT101 Lecture 4
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Lecture 2 2018
    Lecture 2 2018
    Document33 pages
    Lecture 2 2018
    Amarsaikhan Tuvshinbayar
    100% (1)
  • Lecture 3
    Lecture 3
    Document72 pages
    Lecture 3
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Lecture 3
    Lecture 3
    Document72 pages
    Lecture 3
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Programming Lec 8
    Programming Lec 8
    Document32 pages
    Programming Lec 8
    Amarsaikhan Tuvshinbayar
    100% (1)
  • Lecture 2
    Lecture 2
    Document80 pages
    Lecture 2
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Programming Lec 4
    Programming Lec 4
    Document39 pages
    Programming Lec 4
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Lecture 1
    Lecture 1
    Document54 pages
    Lecture 1
    Amarsaikhan Tuvshinbayar
    100% (2)
  • Programming Lec 7
    Programming Lec 7
    Document57 pages
    Programming Lec 7
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Koosen 2018 Algorithm 2
    Koosen 2018 Algorithm 2
    Document48 pages
    Koosen 2018 Algorithm 2
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Programming Lec 9
    Programming Lec 9
    Document39 pages
    Programming Lec 9
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Programming Lec 6
    Programming Lec 6
    Document51 pages
    Programming Lec 6
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • PL - 3
    PL - 3
    Document47 pages
    PL - 3
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Koosen 2018 Algorithm Programming 3
    Koosen 2018 Algorithm Programming 3
    Document46 pages
    Koosen 2018 Algorithm Programming 3
    Amarsaikhan Tuvshinbayar
    100% (1)