MCQs > IT & Programming > Swift > Output? class a1 { func cn10 { for var a = 9; a >=1; --a { for var b = 9; b >= 0; --b{ if b%2==a/2 [ print((b%4),terminator: "“) } } print("") }}} lets = a1() s.cn1()

Swift MCQs

What will be the output of the following code?

class a1 {

func cn10

{

for var a = 9; a >=1; --a {

for var b = 9; b >= 0; --b{

if b%2==a/2 [

print((b%4),terminator: "“)

}

}

print("")

}}}

lets = a1()

s.cn1()

Answer

Correct Answer:

13131

13131

02020


Explanation:

Note: This Question is unanswered, help us to find answer for this one

Swift Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Swift Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it