Loop in scala

for ((subject, count) <- subjects.zipWithIndex) {
    println(s"$count is $subject")
}
Content Protection by DMCA.com
Please Share