Part 6

  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Part 6 as PDF for free.

More details

  • Words: 1,560
  • Pages: 10
WWW.IRANMEET.COM

Farsi e-learning series

[email protected]

WWW.IRANMEET.COM

Farsi e-learning series 1

!"# $

%& '

(

) *

&

+

"#,+&

"* +-".#/

0 )

2 " 3 4 56657 879:

56657 ;5<: =;>
K J=OD

+ 2

J= D

J=ZD

1 ;

*

2

"+

K

L#

[

2

;

J

F G

" HI&

N

+M)

J=; D

& P "K O P )

)

)

'# T

!

2 "U 0 S

K R@C8:

"

HI& Q I&

int main() { char Doste[5]; return 0; }

Doste[0] #

X *Y

N

W/ 1

Doste[1] K

L#

Doste[2] & )"

"M* V

Doste[3] F&

! 2

Doste[4] & )" G

#include int main() { int a[4]; cout<<"enter content of 4 elements : "<<endl ; for(int i=0; i<4; i++) { cout<<"enter content of a["<<<"]"<<endl; cin>>a[i]; } return 0; }

[email protected]

G

%&

"

WWW.IRANMEET.COM

Farsi e-learning series K

L#

N

#\K

& )" L N ] (

" '# T

#include int main() { int a[4]; cout<<"enter content of 4 elements : "<<endl ; for(int i=0; i<4; i++) { cout<<"enter content of a["<<<"]"<<endl; cin>>a[i]; } for(i=0; i<4; i++) cout<<"content of a["<<<"]="<
_

%&

` L#

&

)

F* N

0

N a

%& 5 & )"

HI& G -"F& ^ 2 ! \+K ` L# " ) & "b

+M) F

int b=4; int a[b]; 1

Kc 0d

%& & )" Q

2 'M & ` ?

HI& 1 L#

0 f\

) & "#,+&

N (

X ! & )"

e * '#)" )& M

!

! g+2

int a[4]; HI& 1

_`

2

%&

!

N

%&

h@;C8 i;8

P )

const int b=4; int a[b];

1 %& L#

&

)

2 S

" F G

k K "/ # G

F* ( #& ' " HI& 1 #

S

G ) F* L#) ) & 0 HI& 1 2 "m) & no\& " " %& & )"

X fM.& ' pq %& N

f\

)

& )" jF fl ! ' "+e 3 U

#) + L#

X N M& ' h r) c"- s#/

int a[5]={24,33,49,55,63}; L#

r) q#) & )"

#include int main() { int a[5]={24,33,49,55,63}; for(int i=0; i<4; i++) cout<<"content of a["<<<"]="<
[email protected]

' L#) *

& '# T

K

WWW.IRANMEET.COM

Farsi e-learning series 1

](

)

"

%& P

r&

+-"b

)

S

F G

G "

%&

#

& )"

Q I&

#include int main() { int a[5],sum=0; for(int i=0; i<5; i++) { cout<<"a["<<<"]="; cin>>a[i]; sum=sum+a[i]; } cout<<"The sum is " <<sum; return 0; }

-

P )

"+& / G x K

L#

v "F*

) ^

& i;8 P )

u *

" Q I& r

+ w

M K

" 1 " Q2 u *G &" 3 4

N *

u *G N& b N 0 & ! P )" 2N T

u *G N& b N 0 xz y "

! g+2 q#)

! g+2 ") #

) +2 X *N

1 + 2 Y w

#include Void fun(int array[]) { ... }

int main() { int a[10]; ... fun(a); ... return 0; }

N & b '#&

N

F

F q#)

F

!

)

K

&

V +\{ w1L#

) ! g+2

K " N

) e*

2

-

"m)

&

Q2

x1L# u * }2 * N 0 " %& '#

`3 U

1 #

"##,* " ` K ! g+2 u * G N & b N 0 & )" | -3 4 3 g* no\& ' 1 # 2 " u * & f\ ! K & )" x K no N v "F* h@;C8 i;8 P )

N ` K \) " ‚/ N M&

"##,* ƒ# N

1

t

Q2 u *

0 " ` "^ ! P ) WM0 " # X * & ' #) * &w 1 K !"# $ N ~ & HUg& F • K & € "& 0 X " %&

#+2"g

[email protected]

"

F * •) N

# • "##,* ) b ƒ#

* 4 `'" ! X " y&

WWW.IRANMEET.COM

Farsi e-learning series ! " Y

l

)

"

%& P

r& u * 1

Q2

F * 1 " L#

+-"b ](

) 4

& )"

S N "

F G %& & F

X "

0

G " ) "b

%&

# 4

& )"

& )" Q I& N %&

#include int fun(int a[]) { int sum=0; for(int i=0; i<5; i++) { sum+=a[i]; } return sum; } int main() { int a[5]; for(int i=0; i<5; i++) { cout<<"a["<<<"]="; cin>>a[i]; } cout<<"The sum is " <
#include int main() { int a[5]={5,4,3,2,1} ,b[3]={6,3,1}; cout<<"Union part is : " ; for(int i=0; i<5; i++) { for(int k=0; k<3; k++) { if (a[i]==b[k]) cout<
)Q2 u *

X " "+& / G 3 U

N

`u *

G N ) "b

r&

„ "+K

#

& )"

Q I&

";

" 1 K

S

[email protected]

G

) *

)u *G

X "

Le& #

+M)………

WWW.IRANMEET.COM

Farsi e-learning series

"* +-".#/

q#) c 0

1

!"# $

"+.# 3 0H

) *

&

+

"* +-".#/ P ) `

2 3 U

879: 56657 ;5<: =:B:<:;8 Ci—: D= :B:<:;8 Ci—:

F

'

( 1

r)

-"F&

+ 2

D [ = :B:<:;8 Ci—: ;D E

‡ ) ˆ& ˆ-"F&

‰ F



Š‡ "‡ NH0 `Q I& N

F

i;8 J= D=SD E

J=OD=OD J= D=OD

L#

N .) x F

w ‹a2

" f#a+

&G 3 4

J=OD= D J= D= D

J=OD= D J= D= D

J=OD=ZD J= D=ZD

J=OD=tD J= D=tD 1 ##

L#) *

&L

)

1 K

& "a2

%&

J=5D=?D=hD xz # ^ L '&

5•N +2

N +2 Q

5•c"0

F* Ž ?• "a2

%& ` G#

i;8 J=ZD=tD • ’ ’

'

` V f#a+

F

&

G

u

F*

Q M2 /

X

"^

N

3 4 '# F* Ž h•"a2 F* 1 K f#a+ fMK ( F e(

•H "

L

F

N

2

X * '# T

F* Ž ?• N +2

# e- "b w zzk 1 ) "b ˆ& ‘ O

" L#

#

F

" Œ

L

J=5D=?D

&

f 03 U

F

"

e) +2

2

Ž SŽ ZŽ “” Ž ’ ZŽ •Ž –Ž ”Ž ’tŽ

N

& •FM& G 3 4 #)q Œ l #) * "a2 W‡ ) ` F G #{

%&

"

F G

MK & Ql )& +M) ) & '\ T HI&

Ž “Ž †” ”E 2 fMK ' N

Z t

i;8 J= D=ZD=tD • ’ ’ ’

Ž SŽ ZŽ “” Ž ’ ZŽ •Ž –Ž ”Ž ’tŽ

S •

Z – “

“ †

Ž “Ž †” ” Ž ’ ’“Ž Ž ZŽ t” Ž ’ Ž “Ž



[email protected]

K

L#

Ž

” Ž ’•Ž ZŽ

F

2

SŽ “” ” ”E

" HI&

WWW.IRANMEET.COM

Farsi e-learning series 1 ) ^ & 1 #) N F " $ # c"- Q I& N F 1 #) 111

#) N

2 eg

-

=D &H0 F* '##F* 1

N " #) & ` & -

2

F G

Q2

e * `u * G "+& / N F ) ˜•.& o "4 F "^ "+& / F* F

#\K \ "%* F ( Q2 #K +K " +M) G }%F G v "F* " # U* K e) +2 F* W ) & )" M ` #) G N F L 8:C8 ) & F * 2 ! \+K " 3 U u * v "F* HI&

™;8 8:C8xi;8 J= D= D[w ’ [ ” 2

2

g "F* "

&

™;8 8:C8xi;8 J= D=tD[w ’ [ ” 1

](

Z t tS

• Zt •

t SZ t

“ • t

X "

" W "* &

u X f4 l

#

& )"

š

&

#) *

&

#include int main() { int a[3][2]={{-3,-7},{4,34},{45,7}} ,b[3][2]={{-4,8},{53,-17},{4,4}} ,c[3][2]; for(int i=0; i<3; i++) { for(int k=0; k<2; k++) { c[i][k]=a[i][k]+b[i][k]; cout<
#

)

)

<…; W "* &



[email protected]

"

{l

W "* & u X

& )"

WWW.IRANMEET.COM

Farsi e-learning series Z



t

Zt

t

tS



SZ

2 Z

Z

" W "* &

Y"j 4 l

#

& )"

Q I&

“ •

#include int main() { int a[3][2]={{-3,-7},{3,34},{45,7}} ,b[2][4]={{-4,23,13,8},{53,11,-1,-17}} ,c[3][4]; int s; for (int i=0; i<3; i++) { for(int j=0; j<4; j++) { s=0; for(int k=0; k<2; k++) s+=a[i][k]*b[k][j]; c[i][j]=s; } } for(i=0; i<3; i++) { for(int j=0; j<4; j++) cout<
)

K

<…; 3 U

"* &

e)

œ…; W "* &



[email protected]

<…œ W "* & G Y"›

"

& )" '

#) *

& ………

WWW.IRANMEET.COM

Farsi e-learning series 3 " *

1 %& '

](

X "

"#^

\2 o&

%& G

Wy2

;…; W "* & G N #&"* +-"b

F G

G " %& zk )

!" # +) ,)#

$% &

Z“S /

0 1

'( ) *

)

-.

)# ) 23

.4 567 $8& 9



[email protected]

:

#

& )"

Q X

& )" +-"b

Related Documents

Part 6
April 2020 12
Part 6
November 2019 19
Part-6
October 2019 23
Part 6
June 2020 6
Part 6
December 2019 17
Part 6
June 2020 5