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

YY Y Y Y Yyyyyyy Yyyyy

1) The document contains pseudo code for a program that inputs two number values, x and y, performs calculations on them, and outputs a result. 2) It inputs x and y, checks if x is greater than 0, prints x or y based on the check, and ends. 3) It then contains sample input/output pairs running the program.

Uploaded by

Chun Howe
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

YY Y Y Y Yyyyyyy Yyyyy

1) The document contains pseudo code for a program that inputs two number values, x and y, performs calculations on them, and outputs a result. 2) It inputs x and y, checks if x is greater than 0, prints x or y based on the check, and ends. 3) It then contains sample input/output pairs running the program.

Uploaded by

Chun Howe
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

LkLkCISL 2 NC3 (G26)

uest|on 2
seudo Code
1) SLarL
2) lnpuL number values as x and y
3) lf x ?
O x ? Z
O rlnL x ? Z
O o Lo sLep 6
CCLLLC1lCn 8lnl1 lll1?_CL
n1
1WLn1?_
CLn1
1Ln_CLn
1
llvL_CLn
1
CnL_CLn
1
Cu1u1
927 9 0 1 0 1 2 CCLLLC1lCn927
8lnl19
lll1?_CLn10
1WLn1?_CLn11
1Ln_CLn10
llvL_CLn11
CnL_CLn12
1274 12 1 1 0 0 4 CCLLLC1lCn927
8lnl19
lll1?_CLn10
1WLn1?_CLn11
1Ln_CLn10
llvL_CLn11
CnL_CLn12
6783 67 1 1 1 1 0 CCLLLC1lCn927
8lnl19
lll1?_CLn10
1WLn1?_CLn11
1Ln_CLn10
llvL_CLn11
CnL_CLn12
33363 333 1 0 1 1 0 CCLLLC1lCn927
8lnl19
lll1?_CLn10
1WLn1?_CLn11
1Ln_CLn10
llvL_CLn11
CnL_CLn12
ng Chun Powe
ur 8adzlah Mohamad
A11CS0084
@L
4) Llse y x
O ? + Z A
O rlnL x ? A
3) Lnd lf
6) Lnd
70 30 18uL 40 x ?




1
S1
nuM8L8
x
2
nu
nuM8L8
?
18uL / lALSL SuM ulllL8LnCL Cu1u1
40 30 lALSL 90 x ?
@L

S1A81
lnu1 vALuLS
x ?
x ?
18uL
lALSL
x + ? A
x ? Z
8ln1 1PL
nuM8L8S Anu
SuMMA1lCn
vALuL
8ln1 1PL
nuM8L8S Anu
ulllL8Ln1lAL
vALuL
Lnu

You might also like