var studied = true
var well Rested = true
if (wellRested) {
  println("Good luck today!")
  if (studied) {
    println("You should prepare for the exam!")
  } else {
    println("Spend a few hours studying before the exam!")
  }
}
// Print: Good luck today!
// print: You should be ready for the exam!
Comments