Question PSC-COND-0027
EasyWhat will be printed by the following pseudocode?
Integer n = 17
if (n mod 2 == 0)
Print "even"
else
Print "odd"
end if
- A.
even
- B.
odd
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Conditionals question
What will be printed by the following pseudocode?
Integer n = 17
if (n mod 2 == 0)
Print "even"
else
Print "odd"
end if
even
odd
Sign up free to see the answer and a step-by-step explanation.
17
1