Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt
Code Block
for(int x = 1; x <= 10; x+=1) {switch (season) {
    case "Summer":
        print("It's too hot!");
        break;
    case "Winter":
        print("It's too cold!");
        break;
    default:
        runnerLog(xprint("It's just fine!");
}
Info
Use this method when you are not looping through an array of values but some finite number.