English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Pseudocode:
Z ← 1
Get value for X
IF X is less than 4 THEN
Z ← 1
END IF
IF X is equal to 3 THEN
Z ← 2
END IF
PRINT Value of Z

What is output of above program if input is a) X is 3, b) X is 4, c) X is 2

2007-10-07 04:32:01 · 2 answers · asked by usman i 1 in Science & Mathematics Mathematics

2 answers

a) are you kidding me? ok, z=2
b)z=1
c)z=1
oh, and do your own homework!

2007-10-07 04:38:17 · answer #1 · answered by Santa's little helper 2 · 0 0

If x = 3, then ouput is 2
If x =4, then output is 1
If x = 2, then output is 1

2007-10-07 11:41:21 · answer #2 · answered by ironduke8159 7 · 0 0

fedest.com, questions and answers