‫اارز

ت و ا
ت ا ‬

‫م ‪ 
.‬اا‬

‫‬
‫‬

‫
מ א
א ‬
‫)אא  
א 
א ( ‬
‫‬
‫‬
‫ א  

א אא  
‬
‫א 
א א‪   !  
"#‬‬
‫א
&‪" 
%‬א 
‪$‬א  
‬
‫!&(' * ‪ '() %‬‬
‫אא ‪,‬א" 
‪//+ #‬א
&‪ -.‬‬
‫‪12‬אא 
‪312410‬א אא  ‬
‫א 
‪5 6! " 7‬א& "מא
& ‬
‫!א 
‪3 -8 
9)%‬א
&‪ #‬‬
‫‬
‫‬
‫‬
‫‬
‫‬
‫מ‪ 
.‬א‪.‬א ‬
‫‬
‫‬
‫‬
‫‪1‬‬ 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬  

‫
מ א
א‬ 
( ‫)אא  
א 
א‬ 

:  1 


   
        

)(*  
%+ (   
  ! "# $  %& '(
. % 1 %# /1  /0 .  * ,  -  -+
%
30 4 %(  556  6 
'*5#   ,. 

/  %8 ,+8 9:+ ;<= 
# '*5## ! 7#  '*6 '5
.  , 6 %>   56 
- ?# 

 
        2
: + %>   @6 #
:  
    12
$ . % /8 C . 4 %> ' 5     %1 # %> B 
/**  ! %> " # : D.6 
<  
E " 4 
%< 

F , 6#

4 G:   . ## 1 %<(  #/  E<
%   %> E # + 5 5<# 1 * % # %< '5 
# (
: *     $ 56 9:+ 
. /M# ( 7L# ) (OUTPUT) I6 % 5 H1
. /6  ,M# / #   (  * 5 ) ( INPUT )6  H2 
6# G:  <  +:8# %(5 E ,3  /( % #  '5 H3
.<N
: (  !  )     22
%**  56 0 )* -(  #   *  
  #+ , (# 
#1 % 6 )   +  )  . * B.  %(1 -(5# %5 
%35. 0N 
%  
6 # 556 
<  56 9:+ E< G:
2 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬ 

556 -< )  %>  (  556 )* #*. 1 
#  
. /# 556 *
: #  $  $ 32 
  ,  //8 %& ) "*    :+ ,/ 
 

7#  :L # ) %  %  & O      ) 556
.  .
: %&  '  # 42
% 7# %5 % %& ) "  ) 7#  6 G: , 
 . 7#   56  ,    G: % 6 %  %&* D6
: %  % %* 
13  . 7#  8 %( 5 / , :  * %* H1
! / 56N B0 % 6 %  %&  / ;  G* E N
.   

E  . 7# * %( 5 / , :  #  &* * %* H2
.   
" 56N B0 ! % 6 %&* % &*  (
%&* 7# )  . 7#    , : % %& ) 7#  % %* H3
. 9:8# E5# : B / 7#  )* 
# .# E
: (# '  )* 52
, 6 G: ! -(5# ". 
>* "* #*. : B / 7#  %  ,
!  *5 7#  )* #*. 1 
# /.  F :  % 6 #  
%#
. 9F %(( # )* * ' 5* + " $ . <> 

+, - . /  +*   3
$ 1 %56 %(5 /# ( Algorithm ) % 6 %* 5  B  

+  %1 F 6P B %Q. E5# ! 7L# ) 5 
-   . *
? Q 
%5 < $ . B.  %**  56 
%  
$ 
C . , /8 :+  5 1 !  %>  %3 %(5# %<  56 E 
0  56 % B. , ( !  %>  % %*0 %56 %(5 #
: *  8. : % 6 /#> %>  %(5 
 (# .8
3 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬  

  56 
 %>   %  %(5 B. %# '( H1

$ 56   "*   / C<  C. .8 0  ,
. " @  
5 
-135# 7L# ) #*.   56 
  )*   H2 
+  
##  !  %(5  * 
L/#    ! $ 
.  % 6 
8*6 / %>     5 0 E % 6 
<
 H3
. % 5 %> / #  5
%56 E<6 C. 0 9#= #  " , (#  
" $0=    
6  +  
F  ## ;<R %* L  % 6  $  
: <

: /1/ F
T ,5  %   # / #  ( % 6 )  56 + 
: 
. %  H1
. ,5 ) +: H2
. @ * 
6 H3
.%   *5 H4
. %    # H5
. $ 8 ,3 H6
. $ 8 E H7
. ,5 $ & H8
. %/# H9

: /2/ F  
( a + b x = c ) 0 
) N %  
%   % 6 + 
, /8 C<  .8 
0 F :+ % , %.   a,b,c,x
. % 6
x=

c−a
b

: 0 %  E< 

M3#
:% 
  56 G: )*
4 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬

m %( 9:+ ,U  c 
a ;5 H1
x %( 9:+ ,U  b )* m ,1 H2
x %1  H3 
%L56 7L# 5   5 0    %(1  % 6 9:+ 

:  

# : %1  :6>

x
 a =c # :  : 8.   b  # H1
. x  %1 %     a≠ c
C.      + # -. -  b )* m %1 %# 5 , : H2
. %(  %  '(
5 0 '( %.6  
 %(1 % 6 %(5 C . 
:  0 C.  %  E5# G: )* % 6
E   % 6 9:+ 
%  $ 56 :8# a = c # b = 0 # : H1
. %#F $ 56 )
E   % 6 9:+ 
%6 $ 56 :8# a ≠ c # b = 0 # : H2
. %FF $ 56 )
. m / c 
a ;5 H3
E 5  %6 $ 56 :8# %( %# 1 G#+ 
: b )* m

,
U 1 H4

. B1  %#
. B1  ,F " %  '( C.     "  H5
. B1  ,F " %  '( C.   "  H6 
*5  56 
    % %(1 % 6 9:+ 
# 
)*  %5 %< ,+8  )# ,1 # #(  1 :6
O6 ) $ 56 
8( (# %* G = %< /  % 6 O1
. B1  %/#
: !0  13 
  ,1 
6 %8*6 -1 :6>  ( 
$  ( Variables )   

%*6 " D.6 
   % # ## # :+  $: 
%*6
" %# # $: %*6  
6   :+ +:6> %1 %
" % ": 
: %( 9:+ , 6 E5# / $   %1 # # %*6  %(  %(  
5 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬

(X , A , B , .... ) B 3
- F 9 # , >   9:+ % ##   ,
(VALUE , SUM , ....) F )# 
<N %* ) B 
F
:   
W # 43F B .#
. %    H1
. %   H2
. %(5#   H3
9Q ;5 E 
%  *  ## %1 -1 %    :6> 
5  + # /* %  *  E5# 3 %  /*  
* % # ! %  ** E<6  / ,1> / #0  ) %8#.
6  /# (FALSE) ">56" (TRUE) " C." 
1 :6> / %(5# 

$8 #< 1 (AND , OR ,...... )     * /* ' 5  6 
#+  ( E<6  + %(  556  6  / 6  "#   
. /  %  %&  ( E<6  %  &    9 #  @ 
1       2  - +     23 
:+ # ! "* ( '5#  9#( :   %> 
 E5  
N , /  // E5   * '  "#(*
: + /* (  %L
$: 
%# # $  %*6  , :+ ":  "M8 ,  $1 H1
. - F )(  %*6 
#
 ! 7#   #  %*6 O  &#
E5#
%*6 
 * (# # $: 
$  %*6    ,  E 5H2
. I6 .# 
.# ) $  

6 E (..... ! ;5 ! E ) %* W #   ,
)* %  * ,(H3
. $: 
$  36  %L/# %(# 7L#
. 7#   6P )  
8( (#  N :8# 
B1 H4
5
>0 7#  C. 0 ; 5 X  (  % )* $ (H5
;< E (  ,# ) )* $.( % = 

)* / .   7L# O 
. 

%   "*   
#  !/    33 
#< 1 # : ( % * %* 1 ) %  /# % 6 
 (#
## 
"#  E ,#  "* ( 5  '5# ' ,M# .8 0 / 56
6 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬ 

N , , 6 %  % 6    56 E<  6P )#
" 
(* %  & O  7# ) /*  E5# G: #  /* ( 
. % /  

3  !    4  
# 7   / $ < ( Flowcharts ) %(  556 
+ (  556 /  #( / 56    %.6 % 6 (  
556 9:+  , 6 / -  3
- F #5 : % 6*   F
. $   / % # % #+ 0 
3  !  $ + $ 14
)* 3
-  5 -#  50 %  *   ! (  556 %  *5
%. % 6 
<  % #  56 = " 1 "# E<
O  
% 6 %  %  % %(5    "# N %(( ! C. (  556
E< 
  )* %>  %  G: ! (  556 %Q. % 
G:  $ 6 
8 7L# @8# / . # $  %>  6 $ 
. -F 
3  !  +  23 +.   24 
)* $5  0 /*  %> %5= )* 7   H1
. %(5# 56N B0  /# 8 4 /L 

7  ?  /M  $F 8 %  7  )* . H2
. %(  556
%(  556 ) M# #  7#   )*  # 7   H3
.   %# %> %+ G # 556 )* % $M# 
" $ * " M8  -+ - %# %>  %(  556   H4
. %/ 0 L  , 6  * % #

7 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬ 

3  !  4 3    /    34
: (AINSI ) N #5  /   +   /< /< , (#
: $L 8.# /# 5 5= H1
%*  " E<# //# (  556 % %5(# )* % * 5= :+ , 6
%/# # (STOP/END ) B1  %/# %* 556   (START) %  
5 
F )*   1 "# % *  5 )* 556  
 556
. 556 

$   B1 
: W3<N   5= H2 

# "#< I6 6  *  / 5 5 $1 )* % * , 6  
*5 36 G: % 6 :8# # 5 / 
6  36  
#
 )  
$1  N :8# # "# # ( READ x,y ) 3
- F / 5
. ( x,y )  
# # 
*6  /#6 ( ,
: 5 5= H3 
+ %  * 7L# / 
6  36 
%  *   , 6
%< # (x = y + 5) 3
- F (  556  %  ,  N )  
. x %# # %*6  7# 
6 5  ) y %# # %*6 O 
: 
5= H4 

5 
< #  # (  556   6 X E<  , 6 

5 
W8  y O    x O  + # :/ x= y 
X  
N 
%(  # 8  6 %  %F3F 
#F 
1
.% F   x<=y X 
   %F3F  ,#  

: 5 6 
y %# # %*6 O  
6 M8 # 5 5  x= y    

. y   x + # 
5=  9  # x %# # %*6
: 
8.# /# 5 5= H5
n ) 1 
I  

%1 5  Y 3F (*   
 * , 6
. I= 1, n 0 
: $L  H6

B ,1 /*6 E<  %#F %(5# E (  556 
%(5# .  
, 6
. / 8(  O6N %(5#  B ,1 @8#
8 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬

%(  556  % 6   0  
 
/  $7

/  + 

START

$L 8.# /# 5 5=

READ x,y

W3<N   5=

x=y+5 

5 5=

x= y

yes 

5=
no

I= 1, n 

8.# /# 5 5=

10

$L 

: 5 6
. %*#= %&* %  %&* (  556 O  % 6 %  

9 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬ 

3  !  2  8-   44
: + %(  556* %L W # %   
(Simple sequential Flowchart ) 5  E  556 H1
( Branched Flowchart) W8 556 H2
( Loop Flowchart ) 5   556 H3
( Nested – loop – Flowchart ) %*6   556 H4
: (Simple sequential Flowchart ) 5  E  556 H1H4H4
%** 4   %  # (  8 
W # :+ *6
: , 0 "

START
Event a

Event b

Event c

STOP

10

‫اارز
ت و ا
ت ا ‬

‫م ‪ 
.‬اا‬

‫‪: /3/ F‬‬
‫‪/1/ F  " 6 $   ,5  %   # (  556‬‬

‫ا‪S‬ا‪ R‬‬
‫ا‪X‬ه
ب إ‪ T‬ا‪YZ‬‬
‫ا`
ر _
ن ا]\س‬
‫‪ d\e‬ا‪ Sc‬‬
‫‪
bg‬ول ا‪ Sc‬‬
‫ا ‪j‬م ا‪g
i‬رة‬
‫د‪ k‬ا‪g
i‬رة‬
‫ 
درة ا‪YZ‬‬

‫ا‪ R
ab‬‬

‫‪11‬‬ 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬

: /4/ F
, R +51 B.# $L % 5  
##  % 6 
. %> 9:/ (  556
: % 6
 H1
PIE = 3.14 %1  H2
A = PIE×R² %  
(A ) %  H3
C = 2×PIE×R %  
(C ) 5  H4
5 % 
 ,1 E 5 H5
B1  H6
: (  556

START
READ R

Let PIE = 3.14
Let A = (PIE)×R²

Let C = 2× (PIE)×R

WRITE

A ,C

END

12 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬

: ( Branched Flowchart) W8 556 H2H4H4
:8#  
* G#+ F 
6 
%*<8 ( :6 W # :+ 
< 
(
. 
8 : 1 H1
. 8 43F : 1 H2
: *  " , 0

NO

condition

YES

Event b

Event a

: /5/ F
9:+  $ 8* %< Z0( E # ## %< E ,5  %   # F Z1##
: % & , %
: % 6
. %  H1
. ,5 ) +: H2
. @ * 
6 H3
.%   *5 H4
. %    # H5
. $ 8 ,3 H6
T G  $  % 6 + H7
. 10 $ 56 ) +:  E  ,#   
: H8
. * Z0( E H9

13

. $ 8 E

H10

. ,5 $ &

H11

. %/#

H12

‫اارز
ت و ا
ت ا ‬

‫م ‪ 
.‬اا‬

‫‪: (  556‬‬

‫ا‪S‬ا‪ R‬‬
‫ا‪X‬ه
ب إ‪ T‬ا‪YZ‬‬

‫ا`
ر _
ن ا]\س‬

‫‪ d\e‬ا‪ Sc‬‬

‫‪
bg‬ول ا‪ Sc‬‬

‫ا ‪j‬م ا‪g
i‬رة‬

‫|‪YZ‬‬

‫ه‪ w‬أ‪tS]u‬‬
‫ا ؟‬

‫د‪y z{ k‬‬

‫د‪ k‬ا‪g
i‬رة‬

‫ 
درة ا‪YZ‬‬

‫ا‪ R
ab‬‬

‫‪+‬‬

‫‪14‬‬

‫}‬ 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬

: /6/ F
: % %  ' 
1 %MN %(  
##  % 6 
MAX = max ( A , B )
. '  (  556 , ,F
: % 6
1234567-

START
READ ( A , B )
IF A>B GOTO 4 ELSE GOTO 5
LET MAX = A AND GOTO 6
LET MAX = B
PRINT MAX
STOP
: (  556

START
READ A,B

A>B

NO

Let MAX=B

YES

Let MAX=A

PRINT MAX

STOP

15 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬

: ( Loop Flowchart ) 5   556 H3H4H4 
-  7#   * 
%  %* $ = 556 
W # :/ I#
: *  / , 0  
 Q - 

Event a
condition

NO

NO

YES

condition

Event a
YES

†S‡R ‫ أن‬T‫ إ‬a ‫ ا…ث‬X ibg ‫_ر‬R
YZ| ‫ط‬z‫اب ا‬c

‰ ‫دًا‬u a ‫ ا…ث‬X ibg ‫_ر‬R
YZ| ‫ط‬z‫اب ا‬c ‫ 

آ
ن‬e ‫اات‬

: /7/ F
(R)% * +51 B.# L  
%  5 %  % 6 
( /4/ ,1 F )*   )
: % 6
1234567-

Begin
Read (R)
Let A= 3.14*R²
Let C= 2*3.14*R
Write ( A ,C )
More Circles ? If Yes Goto (2) Else Goto (7)
End

16 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬

: (  556

BEGIN
READ R

Let A=3.14×R²

Let C=2×3.14×R

WRITE A ,C

YES

More
Circles?
NO
END

17 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬

: ( Counter )  
% 5 
#R  %* 
N 
F   ) %  7   I# 
E5 9  %#  56 "#(* I 
 " 36 9 # E / 
: *   56 9:+ #
 

8.* -     H1
:   L " % ( %(    * $   %(  H2
1 + ( % ( )   %1 = ( $   )   %1
(2) $ 56 
    56  H3

: /8/ F 
(  556 , /  100 ) 1 
% 5  N % 5 % 6 
. #
: % 6
1234567-

START
Let I = 0
Let I = I + 1
Let J = I×I
PRINT ( I , J )
If I = 100 Goto (7) Else Goto (3)
STOP

18 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬

: (  556

START
Let I = 0

Let I = I + 1

Let J=I × I

PRINT ( I , J )

NO

I = 100

YES
STOP

: 5 6
. (1) $  $ < @ % 5 %> )*   %1  $  

19 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬

: %= E  
N 
$  %  E ) 
N 
F   7  I# 
N G: 5 3   #
#  # 3
- F ! %# $+M F  

& , 6 G: ## E %* ,(*  0#
#*  % 9:+
' G: , ( E ) = E + 6 "# : & +  
#F
: %  56 
8.* -  E  H1 
&* $  %1 6  H2 
&* %*6  %( L " % ( %(   E* $   %(  H3 
&* %*6  %1 6P + % ( E %1 = $   E %1

%#F $ 56 
]     H4

: /9/ F 
# (  556 , 20 ) 1 
,1N W  = % 6 
. % 5 %>*
: % 6
 H1
I = 0 sum = 0 E< H2
$ 56 ) +:  4 $ 56 ) +: /,#/ (I<= 20 ) 50   
: H3
6
I = I + 1 sum = sum + I E< H4
3 $ 56 ) +: H5
sum W   H6
B1  H7

20 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬

: (  556

START
Let sum = 0
I=1

NO
I< = 20

YES
Sum = sum + I
I=I+1
PRINT sum

STOP

21 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬

: ( Nested – loop – Flowchart ) %*6   556 H4H4H4
) W # :+ 

#  
:  E5(  4 - %*6    

:+   '# , 6  (2)  # *6  (1) 
:  0   *6  * :8# %  
4 

2

1

22 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬

: ( 9  )  6&0 $7  +  $  ,&

I = m1
Loop
I = m1,m2 , m3

Process to be
repeated

I = I + m3
Process to
be repeated

NO

I

(a) w_z‫ا‬

I >= m2
YES

(b) w_z‫ا‬

: *  I#  '( "# (a) 0  M3#
./  & / (I )   H1
.m1    * % N %( H2
.m2    * %L/# %( H3
.m3   (   %/# # $  ) %  $  H4
: *  7  +   .# 9:+  %P 

. m1 + ( % %(  I    H1
. /   *5 = , H2 
% $ 56 ) +: m2 %L/# %( ) *. I   %1 # : H3
(4) $ 56 ) +:  7# 
m3 %  $   ( I    H4
(2) $ 56 )  H5
4 (b) 0  %#  $  $ 56 (a) 0 (5H4H3H1)  56   ## 
*  .6 %  %* / )  X  P 0  +:8#
. 56N #
23 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬ 

: ,    ! G: Q O6 %1 5 ,  -L /1/   m3 %1
) 0#
: *  F -#< /1/ %  /1 
m3
Loop
I = m1,m2

: /10/ F
/ 7/ F    L  
n 5 % = (  556 , 
.  
, 6

START

Loop I = 1,n

READ R

Let A=3.14×R²
Let C=2×3.14×R
PRINT A ,C

I

END

24 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬ 

(/   #) /   :3   5
E $  %>  % 6 
F G#+ 
1 "# :  
% # #+ % 8 8 %8*6 '5 
%# @8# )  X  6 

* )* % 6 %U  /# <N 6 % 6 %U %
: + 

. / 6 %# 5 5 9:+ 
6 ,3 $: , H1
% 6 :8#  *5 1  G: $: ) 5 6 = ,3 1  H2
. #F  %+N @(  N  / 
5 
   

*5 6  , /#   $  
,( '*
% * W # G: '* T(n)  n  E  :8# 

  6 
E5#  ##  "# ! , 6 / W # )*    9:+ % / :8#  
 (   / # F (( 
$   '1 0 T(n)   
%# $80 % # + 1  )* FX 6P     $:8# * 
(n)  # $:8# *  T(n)  

  N G: ! "8# 
. " % 6 :8# ,  

: /11/ F
. + ( % 7## ,1 %  5   % 6 #
:8#  
1
1
1

% 6 $ 56 ,1
1
( n ) ,1N  1
2
(sum = 0 ) 8.   W  
3
(I=0 ) 8.     

n+1

:8# I<=n 5

4

n

,1 1

5

n

W  ) ,1 B<

6

n

1  ( I $  ,1

7

1

( sum/n ) ,1N  ÷ W  = 5  

8

4n+5

W 

25 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬

: %13 )5 % 6 9:/ ,3 

7# "#
T(n) = 4n +5 
6  ,1  n 4
7# - ( F % 6 
1 "#  n  % # ) % E  %13
M3#
.  Q  E  ) %FF %#F %  % * 0   E 

26 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬

: 3  !  !/  ;< ! 6
a x² + b x + c = 0 : 0 
%#F %  
%   (  556 , H1
START
READ a,b,c

YES
YES

NO

a=0

D = b²-4×a×c

b=0
YES

NO

PRINT
impossible

c=0

PRINT
root is any
value

NO

D<0

X1 = -c/b

PRINT
root is
double

x1 =

−b+ D
2×a

x2 =

−b− D
2×a

X1 = -b/2×a
PRINT
X1,X2
x2 =

−D
2×a

X3 = -X2

PRINT
X1,X2,X3

STOP
27 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬

: %13 )5  ( *n ) * = (  556 , H2
N ! = n(n-1)(n-2)(n-3) .............................2×1

START
INPUT N

Let
NFACT = 1

Loop I = 1,N

NFACT = NFACT ×I

I

PRINT N ,NFACT

END

28 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬ 

 , (  
% ? %1:3 %#   % 0 O  1 H3
: % + %  $* N ?8 %#* %.1#  0* 
.1#
X1 , X2 , X3 , ..........................
, ( _*    6  /   % 6  
(  n #  :
. * (  556 , %(8. 0
:  
0 )* X '#  %  + # N ?  
%  #  "# M3#
:
X(1),X(2),X(3), .....................................,X(n)
: 
N ?  )* F XMAX
?8#
: % 6
 H1
(n) 
(* *  6  H2
X(1),X(2),X(3), .............,X(n)N ?  6  H3
XMAX =X(1)  H4
I = 2    H5
(%#() 7 $ 56 ) +:  8 $ 56 ) +: XMAX >=X(1) 
: H6
XMAX = X(1)  H7
I = I + 1  H8
6 $ 56 )   10 $ 56 ) +: I>n 
: H9

29

XMAX E 5

H10

%/#

H11 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬

: (  556

START
INPUT N

Loop I = 1,N

INPUT X(I)

I
XMAX = X(1)

Loop I = 2,N

XMAX>=X(I)
XMAX = X(I)
I
PRINT XMAX

END

30 

‫اارز
ت و ا
ت ا‬


 اا‬. ‫م‬

.  n W   (  556 , H4

START
READ n
Let S = 0

Let I = 1

READ A
S=S+A

I=I+1

NO

I>n

YES
PRINT S

STOP

: 5 6
O6 $ %*#= $ %  %&* %(  556  6 %  #1
.  8 9:+ E B` ) .  :+  % 6 /* % # * 
*********************
31

Sign up to vote on this title
UsefulNot useful