0% found this document useful (0 votes)
5 views

CSL2Types

Uploaded by

engineeringengtr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

CSL2Types

Uploaded by

engineeringengtr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Tip De i kenleri

(Type Variables)
!

" #$ %&
'

' ( !
)* + !

!
,

"# # !# # $
% & $ $
%
! & !# #

'$ $ $ $
)* + !

! - . / 0

! - . / .
) $#
! - . / 1 2 #
3) " 4

". ( 5 .
2 #

7 "#

&

% !

6 $% &'&(

8 )) !

(
!

). .
9

:.

( #

2 2 #

* +
--or--

*
+

*
+
+ , #-

2 1 5
+ , #-

! 2 1 5

, ./.

). .

* , * 0 12

* 0, 12

* 3, #1

+
( 9

( 9

- ; . = = >=
- ' . ? @ ?= @=
- < . A A BB C
- . DD
- .
- . D E F G
- . = E= F= G = D = = ? ? =
@ @ = A = H = B=

2
* 0, "
* 3, "

+
* 00
* 33

00 *
33 *

,
'
i lem Aritmetic operatör Cebirsel ifade C# ifade
Ekleme + f + 7 f + 7

Çıkarma – p – c p - c

Çarpma * b.m b * m

Bölme / x / y x / y

Modlu bölme % r mod s r % s

' 0

"
/
%0 1 ) 2 %0
" ) 1$

.
' 0 3 4
Adım 1.
y = 2 * 5 * 5 + 3 * 5 + 7;
2 * 5 is 10 (En soldaki çarpma)

Adım 2.
y = 10 * 5 + 3 * 5 + 7;
10 * 5 is 50 (En soldaki çarpma)

Adım 3.
y = 50 + 3 * 5 + 7;
3 * 5 is 15 (Toplamadan önceki çarpma)

Adım 4.
y = 50 + 15 + 7;
50 + 15 is 65 (En soldaki toplama)

Adım 5.
y = 65 + 7;
65 + 7 is 72 (Son toplama)

Adım 6. y = 72; (Son i lem 72 de eri y de i kenine


aktarılır)

kinci dereceden polinom i lemi

1 // Fig. 3.11: Addition.cs (Page 72)


2 // An addition program.
3
4 using System;
5
6 class Addition
7 {
8 static void Main( string[] args )
9 {
10 string firstNumber, // first string entered by user
11 secondNumber; // second string entered by user
12
13 int number1, // first number to add
14 number2, // second number to add
15 sum; // sum of number1 and number2
16
17 // prompt for and read first number from user as string
18 Console.Write( "Please enter the first integer: " );
19 firstNumber = Console.ReadLine();
20
21 // read second number from user as string
22 Console.Write( "\nPlease enter the second integer: " );
23 secondNumber = Console.ReadLine();

3
24
25 // convert numbers from type string to type int
26 number1 = Int32.Parse( firstNumber );
27 number2 = Int32.Parse( secondNumber );
28
29 // add numbers
30 sum = number1 + number2;
31
32 // display results
33 Console.WriteLine( "\nThe sum is {0}.", sum );
34
35 } // end method Main
36
37 } // end class Addition

; .
" 0

4
; .

; .
* 4 5 6 7 8 9

; . !
* : , * ; 5

; . I

* ;< = >?429@ : A 5 5

" 0

" 0
+ :
4
+ !
+
9

" 0 !

: + :
+ : ; , ?7 B
+ : ; , #-
$ 0
;J 0

$ 0

. 1
! C

4
8 7 > A
4
D , "#-
! !D , D
* ;< = >B> !A 429 , 4"9B D
!D A
9
9
;J 0

0 J .

! C

4
8 7 > A
4
! !D , E1;7 FD
D , > A !D
* ;< = >B> A 429 , 4"9B !D
D A
9
9

You might also like