Public feed
#726643
Chapter 3
1. If then
3. bye
5. if num=1 then write yes
End if
7.
9. if num 1 = 1
then display no
else display …
11 =, <>, <,>, <=, =>
13 a true b false
15 a true b false c false
17 a N (<= 0) b (N < 0) Or (N > 5)
19 A a single if-then statement
21 input num
if num =1 display yes
if num =2 display no
if num =3 display maybe
23 multiple alternative structure
25 Write “Please input score”
input score
if score = 7,8,9,10
then write “pass”
Else if score =5, 6
Write “retest”
Else score <5
Write “fail”
27 5 and not
29 a 1 done b 2 done c 3 done
31 If Grade <> “A” Then change to If grade = “A” then
33 D techniques that include all above points
35 false
37 a ¼ b The reciprocal of 0 is not defined
39 If num 1, num2 > 0
then set num 3= sqrt (num1)/num2