1
s = iif(mid(c,3,1)="C","yes","no")
msgbox s
2
select case x
case is < 10
y = x ^ 2 -1 + Abs(x)
case 10 to 20
y = Sqr(3 * x -2)
case is > 20
y = x * 3 + 2
end select
if x > 20 then
y = x * 3 + 2
elseif x>=10 and x<= 20 then
y = Sqr(3 * x -2)
elseif x < 10 then
y = x ^ 2 -1 + Abs(x)
end if
3
dim max
if z < y then max = y : else max = z
if max < x then max = x
dim max
max = iif(x>y,x,y)
max = iif(z>max,z,max)